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