Import CStringView from the Babeltrace tree
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.hpp
... / ...
CommitLineData
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 */
19int handle_notification_thread_command(struct notification_thread_handle *handle,
20 struct notification_thread_state *state);
21
22int handle_notification_thread_client_connect(struct notification_thread_state *state);
23
24int handle_notification_thread_client_disconnect(int client_fd,
25 struct notification_thread_state *state);
26
27int handle_notification_thread_client_disconnect_all(struct notification_thread_state *state);
28
29int handle_notification_thread_trigger_unregister_all(struct notification_thread_state *state);
30
31int handle_notification_thread_tracer_event_source_died(struct notification_thread_state *state,
32 int tracer_event_source_fd);
33
34int handle_notification_thread_client_in(struct notification_thread_state *state, int socket);
35
36int handle_notification_thread_client_out(struct notification_thread_state *state, int socket);
37
38int handle_notification_thread_channel_sample(struct notification_thread_state *state,
39 int pipe,
40 enum lttng_domain_type domain);
41
42int 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 */
This page took 0.023087 seconds and 5 git commands to generate.