Commit | Line | Data |
---|---|---|
5024c2ac JR |
1 | /* |
2 | * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: GPL-2.0-only | |
5 | * | |
6 | */ | |
7 | ||
8 | #ifndef ACTION_EXECUTOR_H | |
9 | #define ACTION_EXECUTOR_H | |
10 | ||
11 | struct action_executor; | |
12 | struct notification_thread_handle; | |
13 | struct lttng_trigger; | |
14 | struct notification_client_list; | |
15 | struct lttng_trigger_notification; | |
16 | ||
17 | enum action_executor_status { | |
18 | ACTION_EXECUTOR_STATUS_OK, | |
19 | ACTION_EXECUTOR_STATUS_OVERFLOW, | |
20 | ACTION_EXECUTOR_STATUS_ERROR, | |
21 | ACTION_EXECUTOR_STATUS_INVALID, | |
22 | }; | |
23 | ||
24 | struct action_executor *action_executor_create( | |
25 | struct notification_thread_handle *handle); | |
26 | ||
27 | void action_executor_destroy(struct action_executor *executor); | |
28 | ||
29 | enum action_executor_status action_executor_enqueue( | |
30 | struct action_executor *executor, | |
31 | struct lttng_trigger *trigger, | |
32 | struct notification_client_list *list, | |
33 | struct lttng_trigger_notification *priv_data); | |
34 | ||
35 | #endif /* ACTION_EXECUTOR_H */ |