2 * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef ACTION_EXECUTOR_H
9 #define ACTION_EXECUTOR_H
11 struct action_executor
;
12 struct notification_thread_handle
;
14 struct notification_client_list
;
16 enum action_executor_status
{
17 ACTION_EXECUTOR_STATUS_OK
,
18 ACTION_EXECUTOR_STATUS_OVERFLOW
,
19 ACTION_EXECUTOR_STATUS_ERROR
,
20 ACTION_EXECUTOR_STATUS_INVALID
,
23 struct action_executor
*action_executor_create(
24 struct notification_thread_handle
*handle
);
26 void action_executor_destroy(struct action_executor
*executor
);
28 enum action_executor_status
action_executor_enqueue(
29 struct action_executor
*executor
,
30 struct lttng_trigger
*trigger
,
31 struct notification_client_list
*list
);
33 #endif /* ACTION_EXECUTOR_H */