Fix: consumer add channel return value was positive on error
[lttng-tools.git] / src / bin / lttng-sessiond / ust-ctl.h
1 /*
2 * ust-ctl.h
3 *
4 * Meta header used to include all relevant file from the lttng ust ABI.
5 *
6 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License, version 2 only, as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc., 51
19 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef LTTNG_UST_CTL_H
23 #define LTTNG_UST_CTL_H
24
25 #include <config.h>
26
27 /*
28 * FIXME: temporary workaround: we use a lttng-tools local version of
29 * lttng-ust-abi.h if UST is not found. Eventually, we should use our
30 * own internal structures within lttng-tools instead of relying on the
31 * UST ABI.
32 */
33 #ifdef HAVE_LIBLTTNG_UST_CTL
34
35 #include <lttng/ust-ctl.h>
36 #include <lttng/ust-abi.h>
37 #include <lttng/ust-error.h>
38
39 static inline
40 int ust_ctl_release_object(int sock, struct lttng_ust_object_data *data)
41 {
42 return ustctl_release_object(sock, data);
43 }
44
45 #else /* HAVE_LIBLTTNG_UST_CTL */
46
47 #include "lttng-ust-ctl.h"
48 #include "lttng-ust-abi.h"
49 #include "lttng-ust-error.h"
50
51 static inline
52 int ust_ctl_release_object(int sock, struct lttng_ust_object_data *data)
53 {
54 return 0;
55 }
56
57 #endif /* HAVE_LIBLTTNG_UST_CTL */
58
59 #endif /* _LTT_UST_CTL_H */
This page took 0.030608 seconds and 4 git commands to generate.