X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=3db8a1069ef97625a667cf28eb5dd26bfc243ae5;hp=9e65435ef38ebd2f4ee104a2144898caf643939d;hb=300d317acaa3bd38afafe0a440946e6c73e6fd73;hpb=c5e74408f9786219f6b44400dcf2098ab9cc78fb diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 9e65435e..3db8a106 100644 --- a/include/babeltrace/ctf-text/types.h +++ b/include/babeltrace/ctf-text/types.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -37,6 +37,10 @@ struct ctf_text_stream_pos { FILE *fp; /* File pointer. NULL if unset. */ int depth; int dummy; /* disable output */ + int print_names; /* print field names */ + int field_nr; + uint64_t last_timestamp; /* to print delta */ + GString *string; /* Current string */ }; static inline @@ -66,4 +70,9 @@ void print_pos_tabs(struct ctf_text_stream_pos *pos) fprintf(pos->fp, "\t"); } +/* + * Check if the field must be printed. + */ +int print_field(struct definition *definition); + #endif /* _BABELTRACE_CTF_TEXT_TYPES_H */