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 "notification-thread.hpp"
13 #include <lttng/domain.h>
16 * Event handling function shall only return an error if
17 * the thread should be stopped.
19 int handle_notification_thread_command(struct notification_thread_handle *handle,
20 struct notification_thread_state *state);
22 int handle_notification_thread_client_connect(struct notification_thread_state *state);
24 int handle_notification_thread_client_disconnect(int client_fd,
25 struct notification_thread_state *state);
27 int handle_notification_thread_client_disconnect_all(struct notification_thread_state *state);
29 int handle_notification_thread_trigger_unregister_all(struct notification_thread_state *state);
31 int handle_notification_thread_tracer_event_source_died(struct notification_thread_state *state,
32 int tracer_event_source_fd);
34 int handle_notification_thread_client_in(struct notification_thread_state *state, int socket);
36 int handle_notification_thread_client_out(struct notification_thread_state *state, int socket);
38 int handle_notification_thread_channel_sample(struct notification_thread_state *state,
40 enum lttng_domain_type domain);
42 int handle_notification_thread_event_notification(struct notification_thread_state *state,
44 enum lttng_domain_type domain);
46 #endif /* NOTIFICATION_THREAD_EVENTS_H */