Commit | Line | Data |
---|---|---|
ab0ee2ca | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
ab0ee2ca | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
ab0ee2ca | 5 | * |
ab0ee2ca JG |
6 | */ |
7 | ||
8 | #ifndef NOTIFICATION_THREAD_EVENTS_H | |
9 | #define NOTIFICATION_THREAD_EVENTS_H | |
10 | ||
c9e313bc | 11 | #include "notification-thread.hpp" |
ab0ee2ca | 12 | |
28f23191 JG |
13 | #include <lttng/domain.h> |
14 | ||
ab0ee2ca JG |
15 | /** |
16 | * Event handling function shall only return an error if | |
17 | * the thread should be stopped. | |
18 | */ | |
28f23191 JG |
19 | int handle_notification_thread_command(struct notification_thread_handle *handle, |
20 | struct notification_thread_state *state); | |
ab0ee2ca | 21 | |
28f23191 | 22 | int handle_notification_thread_client_connect(struct notification_thread_state *state); |
ab0ee2ca | 23 | |
28f23191 JG |
24 | int handle_notification_thread_client_disconnect(int client_fd, |
25 | struct notification_thread_state *state); | |
ab0ee2ca | 26 | |
28f23191 | 27 | int handle_notification_thread_client_disconnect_all(struct notification_thread_state *state); |
ab0ee2ca | 28 | |
28f23191 | 29 | int handle_notification_thread_trigger_unregister_all(struct notification_thread_state *state); |
ab0ee2ca | 30 | |
28f23191 JG |
31 | int handle_notification_thread_tracer_event_source_died(struct notification_thread_state *state, |
32 | int tracer_event_source_fd); | |
d02d7404 | 33 | |
28f23191 | 34 | int handle_notification_thread_client_in(struct notification_thread_state *state, int socket); |
ab0ee2ca | 35 | |
28f23191 | 36 | int handle_notification_thread_client_out(struct notification_thread_state *state, int socket); |
ab0ee2ca | 37 | |
28f23191 JG |
38 | int handle_notification_thread_channel_sample(struct notification_thread_state *state, |
39 | int pipe, | |
40 | enum lttng_domain_type domain); | |
ab0ee2ca | 41 | |
28f23191 JG |
42 | int handle_notification_thread_event_notification(struct notification_thread_state *state, |
43 | int pipe, | |
44 | enum lttng_domain_type domain); | |
94078603 | 45 | |
ab0ee2ca | 46 | #endif /* NOTIFICATION_THREAD_EVENTS_H */ |