sessiond: notification: receive incoming notifications from tracers
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.h
CommitLineData
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
11#include <lttng/domain.h>
12#include "notification-thread.h"
13
14/**
15 * Event handling function shall only return an error if
16 * the thread should be stopped.
17 */
18int handle_notification_thread_command(
19 struct notification_thread_handle *handle,
20 struct notification_thread_state *state);
21
22int handle_notification_thread_client_connect(
23 struct notification_thread_state *state);
24
25int handle_notification_thread_client_disconnect(
26 int client_fd,
27 struct notification_thread_state *state);
28
29int handle_notification_thread_client_disconnect_all(
30 struct notification_thread_state *state);
31
32int handle_notification_thread_trigger_unregister_all(
33 struct notification_thread_state *state);
34
d02d7404
JR
35int handle_notification_thread_remove_tracer_event_source_no_result(
36 struct notification_thread_state *state,
37 int tracer_event_source_fd);
38
ab0ee2ca
JG
39int handle_notification_thread_client_in(
40 struct notification_thread_state *state,
41 int socket);
42
43int handle_notification_thread_client_out(
44 struct notification_thread_state *state,
45 int socket);
46
47int handle_notification_thread_channel_sample(
48 struct notification_thread_state *state, int pipe,
49 enum lttng_domain_type domain);
50
94078603
JR
51int handle_notification_thread_event_notification(
52 struct notification_thread_state *state, int pipe,
53 enum lttng_domain_type domain);
54
ab0ee2ca 55#endif /* NOTIFICATION_THREAD_EVENTS_H */
This page took 0.054112 seconds and 4 git commands to generate.