vscode: Add configurations to run the executables under the debugger
[lttng-tools.git] / src / bin / lttng-sessiond / action-executor.hpp
CommitLineData
f2b3ef9f
JG
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
11struct action_executor;
12struct notification_thread_handle;
13struct lttng_evaluation;
14struct lttng_trigger;
15struct notification_client_list;
16struct lttng_credentials;
17
18enum action_executor_status {
19 ACTION_EXECUTOR_STATUS_OK,
20 ACTION_EXECUTOR_STATUS_OVERFLOW,
21 ACTION_EXECUTOR_STATUS_ERROR,
22 ACTION_EXECUTOR_STATUS_INVALID,
23};
24
28f23191 25struct action_executor *action_executor_create(struct notification_thread_handle *handle);
f2b3ef9f
JG
26
27void action_executor_destroy(struct action_executor *executor);
28
f3509d2a
JG
29/*
30 * Enqueue a job on an action executor's work queue to perform the actions
31 * associated with a trigger.
32 *
33 * A reference to `trigger` is acquired.
34 * A reference to `list` is acquired.
35 *
36 * This function assumes the ownership of the `evaluation` both on success and
37 * failure: the caller should no longer access it once the function returns.
38 */
28f23191
JG
39enum action_executor_status
40action_executor_enqueue_trigger(struct action_executor *executor,
41 struct lttng_trigger *trigger,
42 struct lttng_evaluation *evaluation,
43 const struct lttng_credentials *object_creds,
44 struct notification_client_list *list);
f2b3ef9f
JG
45
46#endif /* ACTION_EXECUTOR_H */
This page took 0.052468 seconds and 4 git commands to generate.