X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=b9c9cc30dfb79f296579268526331283baa8df02;hp=7d9b5bfb70b8a7da34ad88ff7c3b0566e9f1be44;hb=03798a93f959f6c694fe98f5647481947607c604;hpb=de913cfdf87242ec3ff54c72a318ebb8714e5465 diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 7d9b5bfb..b9c9cc30 100644 --- a/include/babeltrace/ctf-text/types.h +++ b/include/babeltrace/ctf-text/types.h @@ -39,6 +39,8 @@ struct ctf_text_stream_pos { int dummy; /* disable output */ int print_names; /* print field names */ int field_nr; + uint64_t last_real_timestamp; /* to print delta */ + uint64_t last_cycles_timestamp; /* to print delta */ GString *string; /* Current string */ }; @@ -74,13 +76,4 @@ void print_pos_tabs(struct ctf_text_stream_pos *pos) */ 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 */