X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftracker.c;h=312d7bce07601ee26a87ae82a5cd6821d8d16285;hp=ec908081cef84cd75a350cd5394f5672a0935262;hb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;hpb=f19f5c968f63a83a83c47390020e6ff0dd7c85aa diff --git a/src/common/tracker.c b/src/common/tracker.c index ec908081c..312d7bce0 100644 --- a/src/common/tracker.c +++ b/src/common/tracker.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2019 - Jonathan Rajotte-Julien + * Copyright (C) 2019 Jonathan Rajotte-Julien * - * 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 */ #include @@ -277,13 +267,13 @@ const struct lttng_tracker_id *lttng_tracker_ids_get_at_index( return lttng_tracker_ids_get_pointer_of_index(ids, index); } -int lttng_tracker_ids_get_count(const struct lttng_tracker_ids *ids, unsigned int *count) +enum lttng_tracker_id_status lttng_tracker_ids_get_count(const struct lttng_tracker_ids *ids, unsigned int *count) { - enum lttng_tracker_id_status status = LTTNG_ROTATION_STATUS_OK; + enum lttng_tracker_id_status status = LTTNG_TRACKER_ID_STATUS_OK; if (!ids || !count) { - status = LTTNG_ROTATION_STATUS_INVALID; + status = LTTNG_TRACKER_ID_STATUS_INVALID; goto end; }