2 * Copyright (C) 2017 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 #ifndef NOTIFICATION_THREAD_EVENTS_H
19 #define NOTIFICATION_THREAD_EVENTS_H
21 #include <lttng/domain.h>
22 #include "notification-thread.h"
25 * Event handling function shall only return an error if
26 * the thread should be stopped.
28 int handle_notification_thread_command(
29 struct notification_thread_handle
*handle
,
30 struct notification_thread_state
*state
);
32 int handle_notification_thread_client_connect(
33 struct notification_thread_state
*state
);
35 int handle_notification_thread_client_disconnect(
37 struct notification_thread_state
*state
);
39 int handle_notification_thread_client_disconnect_all(
40 struct notification_thread_state
*state
);
42 int handle_notification_thread_trigger_unregister_all(
43 struct notification_thread_state
*state
);
45 int handle_notification_thread_client_in(
46 struct notification_thread_state
*state
,
49 int handle_notification_thread_client_out(
50 struct notification_thread_state
*state
,
53 int handle_notification_thread_channel_sample(
54 struct notification_thread_state
*state
, int pipe
,
55 enum lttng_domain_type domain
);
57 #endif /* NOTIFICATION_THREAD_EVENTS_H */