X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftracker.h;h=78a12a6c760b245cf9d2dae46abd2499576ce7ee;hp=812b3b1277e3265865d9042fb8a7e1a6f0803144;hb=640b9481e1805d314256361ed49d55dcc35d6172;hpb=2d97a0067600335f07eecb2c1d9ba68fc164583e diff --git a/src/bin/lttng-sessiond/tracker.h b/src/bin/lttng-sessiond/tracker.h index 812b3b127..78a12a6c7 100644 --- a/src/bin/lttng-sessiond/tracker.h +++ b/src/bin/lttng-sessiond/tracker.h @@ -1,23 +1,13 @@ -#ifndef _LTT_TRACKER_H -#define _LTT_TRACKER_H - /* - * Copyright (C) 2018 - Mathieu Desnoyers - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * Copyright (C) 2018 Mathieu Desnoyers * - * This program 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 General Public License for more details. + * SPDX-License-Identifier: GPL-2.0-only * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#ifndef _LTT_TRACKER_H +#define _LTT_TRACKER_H + #include #include #include @@ -56,10 +46,9 @@ int lttng_tracker_list_remove(struct lttng_tracker_list *tracker_list, int lttng_tracker_id_lookup_string(enum lttng_tracker_type tracker_type, const struct lttng_tracker_id *id, int *result); -ssize_t lttng_tracker_id_get_list(const struct lttng_tracker_list *tracker_list, - struct lttng_tracker_id ***_ids); +int lttng_tracker_id_get_list(const struct lttng_tracker_list *tracker_list, + struct lttng_tracker_ids **_ids); int lttng_tracker_id_set_list(struct lttng_tracker_list *tracker_list, - struct lttng_tracker_id **_ids, - size_t count); + const struct lttng_tracker_ids *_ids); #endif /* _LTT_TRACKER_H */