2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ENDPOINT_H
9 #define LTTNG_ENDPOINT_H
11 #include <lttng/lttng-export.h>
18 * Default LTTng session daemon notification endpoint singleton.
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.
29 LTTNG_EXPORT
extern struct lttng_endpoint
*lttng_session_daemon_notification_endpoint
;
32 * Default LTTng session daemon command endpoint singleton.
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
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.
43 LTTNG_EXPORT
extern struct lttng_endpoint
*lttng_session_daemon_command_endpoint
;
49 #endif /* LTTNG_ENDPOINT_H */