From: Michael Jeanson Date: Tue, 15 Dec 2020 19:16:19 +0000 (-0500) Subject: Hide mew 'lttng_msgpack_*' private symbols X-Git-Tag: v2.13.0-rc1~384 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cce1f4b657ad5736f495688ca87749cd7c699778;p=lttng-ust.git Hide mew 'lttng_msgpack_*' private symbols Change-Id: Ib5a5aa2f3c84e723972742cb91f78495be086539 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/libmsgpack/msgpack.h b/libmsgpack/msgpack.h index e5c011ea..3a8335d5 100644 --- a/libmsgpack/msgpack.h +++ b/libmsgpack/msgpack.h @@ -26,6 +26,7 @@ #include #else /* __KERNEL__ */ #include +#include "helper.h" #endif /* __KERNEL__ */ struct lttng_msgpack_writer { @@ -36,26 +37,39 @@ struct lttng_msgpack_writer { uint8_t map_nesting; }; +LTTNG_HIDDEN void lttng_msgpack_writer_init( struct lttng_msgpack_writer *writer, uint8_t *buffer, size_t size); +LTTNG_HIDDEN void lttng_msgpack_writer_fini(struct lttng_msgpack_writer *writer); +LTTNG_HIDDEN int lttng_msgpack_write_nil(struct lttng_msgpack_writer *writer); +LTTNG_HIDDEN int lttng_msgpack_write_true(struct lttng_msgpack_writer *writer); +LTTNG_HIDDEN int lttng_msgpack_write_false(struct lttng_msgpack_writer *writer); +LTTNG_HIDDEN int lttng_msgpack_write_unsigned_integer( struct lttng_msgpack_writer *writer, uint64_t value); +LTTNG_HIDDEN int lttng_msgpack_write_signed_integer( struct lttng_msgpack_writer *writer, int64_t value); +LTTNG_HIDDEN int lttng_msgpack_write_double(struct lttng_msgpack_writer *writer, double value); +LTTNG_HIDDEN int lttng_msgpack_write_str(struct lttng_msgpack_writer *writer, const char *value); +LTTNG_HIDDEN int lttng_msgpack_begin_map(struct lttng_msgpack_writer *writer, size_t count); +LTTNG_HIDDEN int lttng_msgpack_end_map(struct lttng_msgpack_writer *writer); +LTTNG_HIDDEN int lttng_msgpack_begin_array( struct lttng_msgpack_writer *writer, size_t count); +LTTNG_HIDDEN int lttng_msgpack_end_array(struct lttng_msgpack_writer *writer); #endif /* _LTTNG_UST_MSGPACK_H */