sessiond: notification: receive incoming notifications from tracers
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.h
1 /*
2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef NOTIFICATION_THREAD_EVENTS_H
9 #define NOTIFICATION_THREAD_EVENTS_H
10
11 #include <lttng/domain.h>
12 #include "notification-thread.h"
13
14 /**
15 * Event handling function shall only return an error if
16 * the thread should be stopped.
17 */
18 int handle_notification_thread_command(
19 struct notification_thread_handle *handle,
20 struct notification_thread_state *state);
21
22 int handle_notification_thread_client_connect(
23 struct notification_thread_state *state);
24
25 int handle_notification_thread_client_disconnect(
26 int client_fd,
27 struct notification_thread_state *state);
28
29 int handle_notification_thread_client_disconnect_all(
30 struct notification_thread_state *state);
31
32 int handle_notification_thread_trigger_unregister_all(
33 struct notification_thread_state *state);
34
35 int handle_notification_thread_remove_tracer_event_source_no_result(
36 struct notification_thread_state *state,
37 int tracer_event_source_fd);
38
39 int handle_notification_thread_client_in(
40 struct notification_thread_state *state,
41 int socket);
42
43 int handle_notification_thread_client_out(
44 struct notification_thread_state *state,
45 int socket);
46
47 int handle_notification_thread_channel_sample(
48 struct notification_thread_state *state, int pipe,
49 enum lttng_domain_type domain);
50
51 int handle_notification_thread_event_notification(
52 struct notification_thread_state *state, int pipe,
53 enum lttng_domain_type domain);
54
55 #endif /* NOTIFICATION_THREAD_EVENTS_H */
This page took 0.04014 seconds and 4 git commands to generate.