X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;h=a0ad283d1a064831e4f1c2ecee877cd51e8fdbe0;hp=9addebb20e7405c05e65593d785ae535c88be662;hb=b448902b7c2d8fa734e0d5cb1e6acbb009db97e4;hpb=04ae3991741c634481fc3fa069664ae28bbdbaa6 diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index 9addebb2..a0ad283d 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -34,7 +34,7 @@ /* Preallocate this many fields for structures */ #define DEFAULT_NR_STRUCT_FIELDS 8 -struct ctf_stream; +struct ctf_stream_definition; struct stream_pos; struct format; struct definition; @@ -106,7 +106,7 @@ struct stream_pos { /* read/write dispatch table. Specific to plugin used for stream. */ rw_dispatch *rw_table; /* rw dispatch table */ int (*event_cb)(struct stream_pos *pos, - struct ctf_stream *stream); + struct ctf_stream_definition *stream); }; static inline @@ -371,6 +371,7 @@ int64_t get_signed_int(const struct definition *field); int get_int_signedness(const struct definition *field); int get_int_byte_order(const struct definition *field); int get_int_base(const struct definition *field); +size_t get_int_len(const struct definition *field); /* in bits */ enum ctf_string_encoding get_int_encoding(const struct definition *field); /*