X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fust-dynamic-type.h;h=80a80d0995cdbe3d6e2f83b32e743043ac2055f1;hb=b6cd40337647f5a01c24b155c7808a856cd8c377;hp=ac56b560e4345d2959bd4f02cd556822b6ff938f;hpb=ae4b659d95f8dab9f2aa4b890d6937d7d5375f07;p=lttng-ust.git diff --git a/include/ust-dynamic-type.h b/include/ust-dynamic-type.h index ac56b560..80a80d09 100644 --- a/include/ust-dynamic-type.h +++ b/include/ust-dynamic-type.h @@ -9,9 +9,30 @@ #include +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, +}; + +__attribute__((visibility("hidden"))) int lttng_ust_dynamic_type_choices(size_t *nr_choices, - const struct lttng_event_field **choices); -const struct lttng_event_field *lttng_ust_dynamic_type_field(int64_t value); -const struct lttng_event_field *lttng_ust_dynamic_type_tag_field(void); + struct lttng_ust_event_field ***choices); + +__attribute__((visibility("hidden"))) +struct lttng_ust_event_field *lttng_ust_dynamic_type_field(int64_t value); + +__attribute__((visibility("hidden"))) +struct lttng_ust_event_field *lttng_ust_dynamic_type_tag_field(void); #endif /* _LTTNG_UST_DYNAMIC_TYPE_H */