LTTng control library C API
Loading...
Searching...
No Matches
values-signed-int.h
1/*
2 * Copyright (C) 2023 Philippe Proulx <eepp@efficios.com>
3 * Copyright (C) 2023 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only
6 *
7 */
8
9#ifndef LTTNG_MAP_VALUES_SIGNED_INT_H
10#define LTTNG_MAP_VALUES_SIGNED_INT_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/values.h>
14
15#include <stdbool.h>
16#include <stddef.h>
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
67 const struct lttng_map_values *values, uint64_t index, int64_t *value);
68
111 const struct lttng_map_values *values, uint64_t index, bool *has_overflow);
112
114
115#ifdef __cplusplus
116}
117#endif
118
119#endif /* LTTNG_MAP_VALUES_SIGNED_INT_H */
enum lttng_map_values_status lttng_map_values_signed_int_has_overflow_at_index(const struct lttng_map_values *values, uint64_t index, bool *has_overflow)
Sets *has_overflow to whether or not the entry at index in the signed integer map values object value...
lttng_map_values_status
Status code for map values object functions.
Definition values.h:37
enum lttng_map_values_status lttng_map_values_signed_int_get_value_at_index(const struct lttng_map_values *values, uint64_t index, int64_t *value)
Sets *value to the value of the entry at index in the signed integer map values object values.
Per-partition map values object (opaque type).