X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Ftracker-internal.h;h=a0a394479b5d684bd1536bbf92cdec61fb679c65;hp=0debf7523e137001d0c8b1d1775a835243374d31;hb=f19f5c968f63a83a83c47390020e6ff0dd7c85aa;hpb=e283e4a062cc16b5839a8a479e12498789320b5e diff --git a/include/lttng/tracker-internal.h b/include/lttng/tracker-internal.h index 0debf7523..a0a394479 100644 --- a/include/lttng/tracker-internal.h +++ b/include/lttng/tracker-internal.h @@ -18,8 +18,9 @@ #ifndef LTTNG_TRACKER_INTERNAL_H #define LTTNG_TRACKER_INTERNAL_H -#include #include +#include +#include #include #include @@ -71,4 +72,12 @@ LTTNG_HIDDEN struct lttng_tracker_id *lttng_tracker_ids_get_pointer_of_index( const struct lttng_tracker_ids *list, unsigned int index); +/* + * Serialize a ids collection to a lttng_dynamic_buffer. + * Return LTTNG_OK on success, negative lttng error code on error. + */ +LTTNG_HIDDEN +int lttng_tracker_ids_serialize(const struct lttng_tracker_ids *ids, + struct lttng_dynamic_buffer *buffer); + #endif /* LTTNG_TRACKER_INTERNAL_H */