X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat.h;h=cbba50b0ee26e6e3604ad35035720e0f66ff5401;hb=46322b331aefc5739efd841df72d1928e35050e6;hp=590ab4cb1cca73ef14c14aff98d3e7d45a261b35;hpb=7fb210365ad968646a0088d80f709165bf068950;p=babeltrace.git diff --git a/include/babeltrace/format.h b/include/babeltrace/format.h index 590ab4cb..cbba50b0 100644 --- a/include/babeltrace/format.h +++ b/include/babeltrace/format.h @@ -24,6 +24,10 @@ #include #include +/* Parent trace descriptor */ +struct trace_descriptor { +}; + struct format { GQuark name; @@ -46,6 +50,11 @@ struct format { void (*double_write)(struct stream_pos *pos, const struct declaration_float *float_declaration, double v); + long double (*ldouble_read)(struct stream_pos *pos, + const struct declaration_float *float_declaration); + void (*ldouble_write)(struct stream_pos *pos, + const struct declaration_float *float_declaration, + long double v); void (*string_copy)(struct stream_pos *dest, struct stream_pos *src, const struct declaration_string *string_declaration); @@ -80,6 +89,8 @@ struct format { const struct declaration_sequence *sequence_declaration); void (*sequence_end)(struct stream_pos *pos, const struct declaration_sequence *sequence_declaration); + struct trace_descriptor *(*open_trace)(const char *path, int flags); + void (*close_trace)(struct trace_descriptor *descriptor); }; struct format *bt_lookup_format(GQuark qname);