X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-ctl.h;h=c2ab24ac9978dbac9c5876da885170e6bf64543a;hp=f4f34ee2f00bc32eecc3ad434c0f9737409e7a63;hb=0475c50c4d3d2cea973fe4d1f17875d231dea96c;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377 diff --git a/src/bin/lttng-sessiond/ust-ctl.h b/src/bin/lttng-sessiond/ust-ctl.h index f4f34ee2f..c2ab24ac9 100644 --- a/src/bin/lttng-sessiond/ust-ctl.h +++ b/src/bin/lttng-sessiond/ust-ctl.h @@ -3,11 +3,11 @@ * * Meta header used to include all relevant file from the lttng ust ABI. * - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2013 - David Goulet * * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; only version 2 of the License. + * under the terms of the GNU General Public License, version 2 only, as + * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or @@ -15,12 +15,12 @@ * 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., 59 Temple - * Place - Suite 330, Boston, MA 02111-1307, USA. + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef _LTT_UST_CTL_H -#define _LTT_UST_CTL_H +#ifndef LTTNG_UST_CTL_H +#define LTTNG_UST_CTL_H #include @@ -31,11 +31,29 @@ * UST ABI. */ #ifdef HAVE_LIBLTTNG_UST_CTL + #include #include -#else +#include + +static inline +int ust_ctl_release_object(int sock, struct lttng_ust_object_data *data) +{ + return ustctl_release_object(sock, data); +} + +#else /* HAVE_LIBLTTNG_UST_CTL */ + #include "lttng-ust-ctl.h" #include "lttng-ust-abi.h" -#endif +#include "lttng-ust-error.h" + +static inline +int ust_ctl_release_object(int sock, struct lttng_ust_object_data *data) +{ + return 0; +} + +#endif /* HAVE_LIBLTTNG_UST_CTL */ #endif /* _LTT_UST_CTL_H */