X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Ftracker-internal.h;h=daa6d80b1393cadd45d33240af1db10491722f9e;hp=0debf7523e137001d0c8b1d1775a835243374d31;hb=4942c25609805b81dc67ea4447eac7f9cddac655;hpb=a7a533cd65d544e8beebabcca5fe906e27af4707 diff --git a/include/lttng/tracker-internal.h b/include/lttng/tracker-internal.h index 0debf7523..daa6d80b1 100644 --- a/include/lttng/tracker-internal.h +++ b/include/lttng/tracker-internal.h @@ -1,25 +1,16 @@ /* - * Copyright (C) 2019 - Jonathan Rajotte-Julien + * Copyright (C) 2019 Jonathan Rajotte * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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_TRACKER_INTERNAL_H #define LTTNG_TRACKER_INTERNAL_H -#include #include +#include +#include #include #include @@ -71,4 +62,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 */