blob: f4759c193bebf0f296b9150e7985c4fc7753d29b [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Denis Vlasenko98636eb2008-05-09 17:59:34 +00002
Denis Vlasenkof81e8db2009-04-09 12:35:13 +00003PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
Denis Vlasenko98636eb2008-05-09 17:59:34 +00004
Denis Vlasenko55f79122008-07-16 11:00:16 +00005enum dump_vflag_t { ALL, DUP, FIRST, WAIT }; /* -v values */
Glenn L McGrath55b2ded2001-11-02 11:40:44 +00006
Denys Vlasenkodac5b832020-10-20 18:54:36 +02007typedef struct FS FS;
Glenn L McGrath55b2ded2001-11-02 11:40:44 +00008
Denis Vlasenko55f79122008-07-16 11:00:16 +00009typedef struct dumper_t {
10 off_t dump_skip; /* bytes to skip */
11 int dump_length; /* max bytes to read */
Denys Vlasenkoe4dcba12010-10-28 18:57:19 +020012 smallint dump_vflag; /*enum dump_vflag_t*/
Denys Vlasenkodac5b832020-10-20 18:54:36 +020013 const char *eofstring;
Denis Vlasenko55f79122008-07-16 11:00:16 +000014 FS *fshead;
15} dumper_t;
Manuel Novoa III cad53642003-03-19 09:13:01 +000016
Denis Vlasenko55f79122008-07-16 11:00:16 +000017dumper_t* alloc_dumper(void) FAST_FUNC;
18extern void bb_dump_add(dumper_t *dumper, const char *fmt) FAST_FUNC;
19extern int bb_dump_dump(dumper_t *dumper, char **argv) FAST_FUNC;
Denis Vlasenko98636eb2008-05-09 17:59:34 +000020
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000021POP_SAVED_FUNCTION_VISIBILITY