X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fevents.h;h=c34ae9a4f549328dbbb095fb8e392e40f25a396e;hp=88795fa03bfdaf513f4986c9f79b91f8cc26bd24;hb=4d25c35030415c091380f500aede9cf71ea6480f;hpb=75d9ab4b8164f7b2012da916c5b36f1445e9ee09 diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 88795fa0..c34ae9a4 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -193,9 +193,15 @@ int bt_ctf_get_array_len(const struct definition *field); * If the field does not exist or is not of the type requested, the value * returned is undefined. To check if an error occured, use the * bt_ctf_field_get_error() function after accessing a field. + * + * bt_ctf_get_enum_int gets the integer field of an enumeration. + * bt_ctf_get_enum_str gets the string matching the current enumeration + * value, or NULL if the current value does not match any string. */ uint64_t bt_ctf_get_uint64(const struct definition *field); int64_t bt_ctf_get_int64(const struct definition *field); +const struct definition *bt_ctf_get_enum_int(const struct definition *field); +const char *bt_ctf_get_enum_str(const struct definition *field); char *bt_ctf_get_char_array(const struct definition *field); char *bt_ctf_get_string(const struct definition *field);