X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fust-dynamic-type.h;h=e63fc4c4c4037372b9ea4b06e382358ef7564542;hb=69e21fdfdb03686626978254eb4e91ab0e2b4a38;hp=d88e3c09b9ac6ad3c431efd771f80e23b30faafd;hpb=00e0418ceaa42fb0266f8fb410a8e5f3351c0c88;p=lttng-ust.git diff --git a/include/ust-dynamic-type.h b/include/ust-dynamic-type.h index d88e3c09..e63fc4c4 100644 --- a/include/ust-dynamic-type.h +++ b/include/ust-dynamic-type.h @@ -9,14 +9,30 @@ #include -#include "ust-helper.h" +enum lttng_ust_dynamic_type { + LTTNG_UST_DYNAMIC_TYPE_NONE, + LTTNG_UST_DYNAMIC_TYPE_S8, + LTTNG_UST_DYNAMIC_TYPE_S16, + LTTNG_UST_DYNAMIC_TYPE_S32, + LTTNG_UST_DYNAMIC_TYPE_S64, + LTTNG_UST_DYNAMIC_TYPE_U8, + LTTNG_UST_DYNAMIC_TYPE_U16, + LTTNG_UST_DYNAMIC_TYPE_U32, + LTTNG_UST_DYNAMIC_TYPE_U64, + LTTNG_UST_DYNAMIC_TYPE_FLOAT, + LTTNG_UST_DYNAMIC_TYPE_DOUBLE, + LTTNG_UST_DYNAMIC_TYPE_STRING, + _NR_LTTNG_UST_DYNAMIC_TYPES, +}; -LTTNG_HIDDEN int lttng_ust_dynamic_type_choices(size_t *nr_choices, - const struct lttng_event_field **choices); -LTTNG_HIDDEN -const struct lttng_event_field *lttng_ust_dynamic_type_field(int64_t value); -LTTNG_HIDDEN -const struct lttng_event_field *lttng_ust_dynamic_type_tag_field(void); + const struct lttng_ust_event_field ***choices) + __attribute__((visibility("hidden"))); + +const struct lttng_ust_event_field *lttng_ust_dynamic_type_field(int64_t value) + __attribute__((visibility("hidden"))); + +const struct lttng_ust_event_field *lttng_ust_dynamic_type_tag_field(void) + __attribute__((visibility("hidden"))); #endif /* _LTTNG_UST_DYNAMIC_TYPE_H */