2 * Copyright (C) 2020 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ACTION_INCR_VALUE_INTERNAL_H
9 #define LTTNG_ACTION_INCR_VALUE_INTERNAL_H
13 #include <common/macros.h>
16 struct lttng_payload_view
;
20 * Create a "incr-value" action from a payload view.
22 * On success, return the number of bytes consumed from `view`, and the created
23 * action in `*action`. On failure, return -1.
26 extern ssize_t
lttng_action_incr_value_create_from_payload(
27 struct lttng_payload_view
*view
,
28 struct lttng_action
**action
);
31 enum lttng_action_status
lttng_action_incr_value_borrow_key_mutable(
32 const struct lttng_action
*action
, struct lttng_map_key
**key
);
35 enum lttng_action_status
lttng_action_incr_value_set_tracer_token(
36 struct lttng_action
*action
, uint64_t token
);
39 uint64_t lttng_action_incr_value_get_tracer_token(
40 const struct lttng_action
*action
);
42 #endif /* LTTNG_ACTION_INCR_VALUE_INTERNAL_H */
This page took 0.040885 seconds and 5 git commands to generate.