2 * Copyright (C) 2020 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ACTION_INCR_VALUE_H
9 #define LTTNG_ACTION_INCR_VALUE_H
11 #include <lttng/action/action.h>
12 #include <lttng/map-key.h>
22 * Create a newly allocated incr-value action object.
24 * Returns a new action on success, NULL on failure. This action must be
25 * destroyed using lttng_action_destroy().
27 extern struct lttng_action
*lttng_action_incr_value_create(void);
30 * Set the session name of an lttng_action object of type
31 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
33 extern enum lttng_action_status
lttng_action_incr_value_set_session_name(
34 struct lttng_action
*action
, const char *session_name
);
37 * Get the session name of an lttng_action object of type
38 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
40 extern enum lttng_action_status
lttng_action_incr_value_get_session_name(
41 const struct lttng_action
*action
, const char **session_name
);
44 * Set the map name of an lttng_action object of type
45 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
47 extern enum lttng_action_status
lttng_action_incr_value_set_map_name(
48 struct lttng_action
*action
, const char *map_name
);
51 * Get the map name of an lttng_action object of type
52 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
54 extern enum lttng_action_status
lttng_action_incr_value_get_map_name(
55 const struct lttng_action
*action
, const char **map_name
);
58 * Set key allocation policy for an lttng_action object type
59 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
61 * The caller retains ownership of the passed lttng_map_key.
63 extern enum lttng_action_status
64 lttng_action_incr_value_set_key(struct lttng_action
*action
,
65 struct lttng_map_key
*key
);
68 * Get key allocation policy for an lttng_action object type
69 * LTTNG_ACTION_TYPE_INCREMENT_VALUE.
71 extern enum lttng_action_status
72 lttng_action_incr_value_get_key(const struct lttng_action
*action
,
73 const struct lttng_map_key
**key
);
79 #endif /* LTTNG_ACTION_INCR_VALUE_H */
This page took 0.030849 seconds and 5 git commands to generate.