lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / endpoint.h
CommitLineData
a58c490f 1/*
ab5be9fa 2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
a58c490f 3 *
ab5be9fa 4 * SPDX-License-Identifier: LGPL-2.1-only
a58c490f 5 *
a58c490f
JG
6 */
7
8#ifndef LTTNG_ENDPOINT_H
9#define LTTNG_ENDPOINT_H
10
4bd69c5f
SM
11#include <lttng/lttng-export.h>
12
a58c490f
JG
13#ifdef __cplusplus
14extern "C" {
15#endif
16
b99a0cb3
JG
17/*
18 * Default LTTng session daemon notification endpoint singleton.
19 *
20 * For use during the creation of a notification channel. This endpoint
21 * implements the following policy to connect to a session daemon's
22 * notification delivery channel:
23 * - If the caller is root or part of the tracing group:
24 * - Attempt to connect to the "root" (global) session daemon,
25 * - Fallback to the session daemon running as the caller's user.
26 * - Otherwise (caller is an unpriviliged user):
27 * - Attempt to connect to the session daemon running as the caller's user.
28 */
4bd69c5f 29LTTNG_EXPORT extern struct lttng_endpoint *lttng_session_daemon_notification_endpoint;
a58c490f 30
b99a0cb3
JG
31/*
32 * Default LTTng session daemon command endpoint singleton.
33 *
34 * For use as part of the invocation of a command. This endpoint
35 * implements the following policy to connect to a session daemon's
36 * command channel:
37 * - If the caller is root or part of the tracing group:
38 * - Attempt to connect to the "root" (global) session daemon,
39 * - Fallback to the session daemon running as the caller's user.
40 * - Otherwise (caller is an unpriviliged user):
41 * - Attempt to connect to the session daemon running as the caller's user.
42 */
4bd69c5f 43LTTNG_EXPORT extern struct lttng_endpoint *lttng_session_daemon_command_endpoint;
b99a0cb3 44
a58c490f
JG
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* LTTNG_ENDPOINT_H */
This page took 0.031848 seconds and 4 git commands to generate.