X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fust-fd.h;h=ddebaa91affed11018a8a7dba95da981364021f6;hb=b4c8bf2f2320b7a2d19dec6addda5d6d2aa227a3;hp=032cac538412d620b379cd77bfcaf6f76ea06885;hpb=52a20dc78a372394471e3394a8d335ef00cebad3;p=lttng-ust.git diff --git a/include/ust-fd.h b/include/ust-fd.h index 032cac53..ddebaa91 100644 --- a/include/ust-fd.h +++ b/include/ust-fd.h @@ -1,33 +1,22 @@ -#ifndef _LTTNG_UST_FD_H -#define _LTTNG_UST_FD_H - /* - * Copyright (C) 2016 - Mathieu Desnoyers - * - * 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. + * 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 + * Copyright (C) 2016 Mathieu Desnoyers */ +#ifndef _LTTNG_UST_FD_H +#define _LTTNG_UST_FD_H + /* - * This header is meant for liblttng and libust internal use ONLY. - * These declarations should NOT be considered stable API. + * The fd tracker feature is part of the ABI and used by liblttng-ust-fd. + * However, some test code and documentation needs to be written before it is + * exposed to users with a public header. */ #include void lttng_ust_init_fd_tracker(void); -void lttng_ust_add_fd_to_tracker(int fd); +int lttng_ust_add_fd_to_tracker(int fd); void lttng_ust_delete_fd_from_tracker(int fd); void lttng_ust_lock_fd_tracker(void); void lttng_ust_unlock_fd_tracker(void);