X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=101873a9d5af801bff4508bef1183728ff75e329;hp=7703e7b8e25148272f5c6ed91f8e0264ea0d4706;hb=6743f229982176bfc2bdd2b3ab5c75ca62f45b35;hpb=81dee1bb528a95f7bf2bc622948807150794a75e diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 7703e7b8..101873a9 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 @@ -39,6 +39,7 @@ struct ctf_text_stream_pos { int dummy; /* disable output */ int print_names; /* print field names */ int field_nr; + uint64_t last_timestamp; /* to print delta */ GString *string; /* Current string */ }; @@ -69,4 +70,18 @@ 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); + +static inline +const char *rem_(const char *str) +{ + if (str[0] == '_') + return &str[1]; + else + return str; +} + #endif /* _BABELTRACE_CTF_TEXT_TYPES_H */