Home | History | Annotate | Download | only in common

Lines Matching defs:dumper

15 /* dumper is an interface to output some human-readable information */
16 struct dumper {
17 void (*vprintf)(struct dumper *dumper, const char *format, va_list ap);
18 void *data; /* private to each dumper */
21 /* a convenience function outputs to a dumper */
22 void dumpf(struct dumper *dumper, const char *format, ...);
25 * a dumper outputs to syslog with the given priority
27 struct dumper *syslog_dumper_create(int priority);
28 void syslog_dumper_free(struct dumper *dumper);
31 * a dumper saves the output in a memory buffer
33 struct dumper *mem_dumper_create();
34 void mem_dumper_free(struct dumper *dumper);
37 void mem_dumper_get(struct dumper *dumper, char **buf, int *size);
40 void mem_dumper_clear(struct dumper *dumper);
43 void mem_dumper_consume(struct dumper *dumper, int n);