Build a list of triggers applying to a given session on creation
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.h
1 /*
2 * Copyright (C) 2017 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
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.
7 *
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
11 * more details.
12 *
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.
16 */
17
18 #ifndef NOTIFICATION_THREAD_EVENTS_H
19 #define NOTIFICATION_THREAD_EVENTS_H
20
21 #include <lttng/domain.h>
22 #include "notification-thread.h"
23
24 /**
25 * Event handling function shall only return an error if
26 * the thread should be stopped.
27 */
28 int handle_notification_thread_command(
29 struct notification_thread_handle *handle,
30 struct notification_thread_state *state);
31
32 int handle_notification_thread_client_connect(
33 struct notification_thread_state *state);
34
35 int handle_notification_thread_client_disconnect(
36 int client_fd,
37 struct notification_thread_state *state);
38
39 int handle_notification_thread_client_disconnect_all(
40 struct notification_thread_state *state);
41
42 int handle_notification_thread_trigger_unregister_all(
43 struct notification_thread_state *state);
44
45 int handle_notification_thread_client_in(
46 struct notification_thread_state *state,
47 int socket);
48
49 int handle_notification_thread_client_out(
50 struct notification_thread_state *state,
51 int socket);
52
53 int handle_notification_thread_channel_sample(
54 struct notification_thread_state *state, int pipe,
55 enum lttng_domain_type domain);
56
57 #endif /* NOTIFICATION_THREAD_EVENTS_H */
This page took 0.030443 seconds and 5 git commands to generate.