X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.h;h=a06c471cce9a6c10a7673f10e86ab1d55da31eb7;hp=1f6f534fec96591d6f651dac800a396987f1160f;hb=refs%2Fheads%2Fsow-2019-0002-rev1;hpb=55c9e7cac24318259d4f2549c97f7577b7b52db4 diff --git a/src/bin/lttng-sessiond/trace-ust.h b/src/bin/lttng-sessiond/trace-ust.h index 1f6f534fe..a06c471cc 100644 --- a/src/bin/lttng-sessiond/trace-ust.h +++ b/src/bin/lttng-sessiond/trace-ust.h @@ -1,19 +1,9 @@ /* - * Copyright (C) 2011 - David Goulet - * Copyright (C) 2016 - Jérémie Galarneau + * Copyright (C) 2011 David Goulet + * Copyright (C) 2016 Jérémie Galarneau * - * 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. + * SPDX-License-Identifier: GPL-2.0-only * - * 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. - * - * 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_TRACE_UST_H @@ -238,9 +228,9 @@ int trace_ust_id_tracker_lookup(enum lttng_tracker_type tracker_type, struct ltt_ust_session *session, int id); -ssize_t trace_ust_list_tracker_ids(enum lttng_tracker_type tracker_type, +int trace_ust_list_tracker_ids(enum lttng_tracker_type tracker_type, struct ltt_ust_session *session, - struct lttng_tracker_id **_ids); + struct lttng_tracker_ids **_ids); #else /* HAVE_LIBLTTNG_UST_CTL */ @@ -335,7 +325,7 @@ struct agent *trace_ust_find_agent(struct ltt_ust_session *session, } static inline int trace_ust_track_id(enum lttng_tracker_type tracker_type, struct ltt_ust_session *session, - const struct lttng_tracker_id *id); + const struct lttng_tracker_id *id) { return 0; } @@ -352,10 +342,10 @@ static inline int trace_ust_id_tracker_lookup( { return 0; } -static inline ssize_t trace_ust_list_tracker_ids( +static inline int trace_ust_list_tracker_ids( enum lttng_tracker_type tracker_type, struct ltt_ust_session *session, - struct lttng_tracker_id **_ids) + struct lttng_tracker_ids **_ids) { return -1; }