Fix: ust-app: protect app socket protocol with lock
[lttng-tools.git] / src / bin / lttng-sessiond / ust-ctl.h
CommitLineData
baa0e4a9 1/*
48842b30
DG
2 * ust-ctl.h
3 *
4 * Meta header used to include all relevant file from the lttng ust ABI.
5 *
7972aab2 6 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
baa0e4a9 7 *
7972aab2
DG
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.
baa0e4a9 11 *
7972aab2
DG
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.
baa0e4a9 16 *
7972aab2
DG
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.
baa0e4a9
DG
20 */
21
7972aab2
DG
22#ifndef LTTNG_UST_CTL_H
23#define LTTNG_UST_CTL_H
baa0e4a9 24
2bdd86d4 25#include <config.h>
0177d773 26
fb45065e
MD
27struct ust_app;
28
48842b30
DG
29/*
30 * FIXME: temporary workaround: we use a lttng-tools local version of
31 * lttng-ust-abi.h if UST is not found. Eventually, we should use our
32 * own internal structures within lttng-tools instead of relying on the
33 * UST ABI.
34 */
74d0b642 35#ifdef HAVE_LIBLTTNG_UST_CTL
7972aab2 36
9df8df5e
DG
37#include <lttng/ust-ctl.h>
38#include <lttng/ust-abi.h>
49c336c1 39#include <lttng/ust-error.h>
7972aab2 40
fb45065e 41int ust_app_release_object(struct ust_app *app, struct lttng_ust_object_data *data);
7972aab2
DG
42
43#else /* HAVE_LIBLTTNG_UST_CTL */
44
48842b30
DG
45#include "lttng-ust-ctl.h"
46#include "lttng-ust-abi.h"
49c336c1 47#include "lttng-ust-error.h"
7972aab2
DG
48
49static inline
fb45065e 50int ust_app_release_object(struct ust_app *app, struct lttng_ust_object_data *data)
7972aab2
DG
51{
52 return 0;
53}
54
55#endif /* HAVE_LIBLTTNG_UST_CTL */
3bd1e081 56
62499ad6 57#endif /* _LTT_UST_CTL_H */
This page took 0.042695 seconds and 4 git commands to generate.