X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Fhandle.h;h=efc889f1d62ba89b2b6785113d562b6e1d9e6415;hb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;hp=c5958b4023e3b361a0496122a35e249435942b3f;hpb=95681498599cbd3bc1aa6dfa725a668ab272170b;p=lttng-tools.git diff --git a/include/lttng/handle.h b/include/lttng/handle.h index c5958b402..efc889f1d 100644 --- a/include/lttng/handle.h +++ b/include/lttng/handle.h @@ -1,24 +1,15 @@ /* - * Copyright (C) 2014 - David Goulet + * Copyright (C) 2014 David Goulet * - * 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_HANDLE_H #define LTTNG_HANDLE_H #include +#include #ifdef __cplusplus extern "C" { @@ -50,7 +41,7 @@ struct lttng_handle { * Return a newly allocated handle that should be freed using * lttng_destroy_handle. On error, NULL is returned. */ -extern struct lttng_handle *lttng_create_handle(const char *session_name, +LTTNG_EXPORT extern struct lttng_handle *lttng_create_handle(const char *session_name, struct lttng_domain *domain); /* @@ -58,7 +49,7 @@ extern struct lttng_handle *lttng_create_handle(const char *session_name, * * It free the given pointer making it unusable. */ -extern void lttng_destroy_handle(struct lttng_handle *handle); +LTTNG_EXPORT extern void lttng_destroy_handle(struct lttng_handle *handle); #ifdef __cplusplus