X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libmsgpack%2Fmsgpack.h;h=f75be91a779b5d825bf2f3c7b2f55c48b1b65011;hb=f574bfb4d81b26d3cfc0243868d138e33470a950;hp=3a8335d52efd9865b1228a065a0bfa21d2a059c3;hpb=cce1f4b657ad5736f495688ca87749cd7c699778;p=lttng-ust.git diff --git a/libmsgpack/msgpack.h b/libmsgpack/msgpack.h index 3a8335d5..f75be91a 100644 --- a/libmsgpack/msgpack.h +++ b/libmsgpack/msgpack.h @@ -1,32 +1,17 @@ -#ifndef _LTTNG_UST_MSGPACK_H -#define _LTTNG_UST_MSGPACK_H - /* - * msgpack.h + * SPDX-License-Identifier: LGPL-2.1-only * * Copyright (C) 2020 Francis Deslauriers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef _LTTNG_UST_MSGPACK_H +#define _LTTNG_UST_MSGPACK_H + #include #ifdef __KERNEL__ #include #else /* __KERNEL__ */ #include -#include "helper.h" #endif /* __KERNEL__ */ struct lttng_msgpack_writer { @@ -37,39 +22,49 @@ struct lttng_msgpack_writer { uint8_t map_nesting; }; -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) void lttng_msgpack_writer_init( struct lttng_msgpack_writer *writer, uint8_t *buffer, size_t size); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) void lttng_msgpack_writer_fini(struct lttng_msgpack_writer *writer); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) int lttng_msgpack_write_nil(struct lttng_msgpack_writer *writer); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_true(struct lttng_msgpack_writer *writer); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_false(struct lttng_msgpack_writer *writer); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_unsigned_integer( struct lttng_msgpack_writer *writer, uint64_t value); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_signed_integer( struct lttng_msgpack_writer *writer, int64_t value); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_double(struct lttng_msgpack_writer *writer, double value); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_write_str(struct lttng_msgpack_writer *writer, const char *value); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_begin_map(struct lttng_msgpack_writer *writer, size_t count); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_end_map(struct lttng_msgpack_writer *writer); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_begin_array( struct lttng_msgpack_writer *writer, size_t count); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_msgpack_end_array(struct lttng_msgpack_writer *writer); #endif /* _LTTNG_UST_MSGPACK_H */