X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fevents.h;h=1cfa9e3b39cd6f37d63b004db5eaa7d3d8a5177d;hp=30365aaabbafd80d41e2aa6a7f2da7ec87faaff3;hb=fef0e5211cd1cb9a2acb5dad6045d15cfd75fe5b;hpb=550cb17d6186e3e3ed2daa1616ceab3da2d86b5d diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 30365aaa..1cfa9e3b 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -155,6 +155,12 @@ int bt_ctf_get_int_base(const struct definition *field); */ int bt_ctf_get_int_byte_order(const struct definition *field); +/* + * bt_ctf_get_int_len: return the size, in bits, of an int or a negative + * value on error + */ +ssize_t bt_ctf_get_int_len(const struct definition *field); + /* * bt_ctf_get_encoding: return the encoding of an int or a string. * return a negative value on error