2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef NOTIFICATION_THREAD_EVENTS_H
9 #define NOTIFICATION_THREAD_EVENTS_H
11 #include <lttng/domain.h>
12 #include "notification-thread.h"
15 * Event handling function shall only return an error if
16 * the thread should be stopped.
18 int handle_notification_thread_command(
19 struct notification_thread_handle
*handle
,
20 struct notification_thread_state
*state
);
22 int handle_notification_thread_client_connect(
23 struct notification_thread_state
*state
);
25 int handle_notification_thread_client_disconnect(
27 struct notification_thread_state
*state
);
29 int handle_notification_thread_client_disconnect_all(
30 struct notification_thread_state
*state
);
32 int handle_notification_thread_trigger_unregister_all(
33 struct notification_thread_state
*state
);
35 int handle_notification_thread_tracer_event_source_died(
36 struct notification_thread_state
*state
,
37 int tracer_event_source_fd
);
39 int handle_notification_thread_client_in(
40 struct notification_thread_state
*state
,
43 int handle_notification_thread_client_out(
44 struct notification_thread_state
*state
,
47 int handle_notification_thread_channel_sample(
48 struct notification_thread_state
*state
, int pipe
,
49 enum lttng_domain_type domain
);
51 int handle_notification_thread_event_notification(
52 struct notification_thread_state
*state
, int pipe
,
53 enum lttng_domain_type domain
);
55 #endif /* NOTIFICATION_THREAD_EVENTS_H */