Commit | Line | Data |
---|---|---|
4d076222 | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2013 David Goulet <dgoulet@efficios.com> |
4d076222 | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
4d076222 | 5 | * |
4d076222 DG |
6 | */ |
7 | ||
f28f9e44 JG |
8 | #include <stdbool.h> |
9 | ||
022d91ba DG |
10 | #ifndef LTTNG_SESSIOND_AGENT_THREAD_H |
11 | #define LTTNG_SESSIOND_AGENT_THREAD_H | |
4d076222 DG |
12 | |
13 | #ifdef HAVE_LIBLTTNG_UST_CTL | |
14 | ||
0f4aa1a8 JG |
15 | bool launch_agent_management_thread(); |
16 | bool agent_tracing_is_enabled(); | |
4d076222 DG |
17 | |
18 | #else /* HAVE_LIBLTTNG_UST_CTL */ | |
19 | ||
28f23191 | 20 | static inline bool launch_agent_management_thread(void) |
4d076222 | 21 | { |
8a7e4590 | 22 | return true; |
4d076222 | 23 | } |
8a7e4590 | 24 | |
28f23191 | 25 | static inline bool agent_tracing_is_enabled(void) |
f28f9e44 JG |
26 | { |
27 | return false; | |
28 | } | |
4d076222 DG |
29 | |
30 | #endif /* HAVE_LIBLTTNG_UST_CTL */ | |
31 | ||
022d91ba | 32 | #endif /* LTTNG_SESSIOND_AGENT_THREAD_H */ |