LTTng control library C API
Loading...
Searching...
No Matches
key-set.h
1/*
2 * Copyright (C) 2024 Philippe Proulx <eepp@efficios.com>
3 * Copyright (C) 2024 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only
6 *
7 */
8
9#ifndef LTTNG_MAP_KEY_SET_H
10#define LTTNG_MAP_KEY_SET_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/key.h>
14
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
33
48
73LTTNG_EXPORT extern enum lttng_map_key_set_status
75
98LTTNG_EXPORT extern enum lttng_map_key_set_status
99lttng_map_key_set_get_count(const struct lttng_map_key_set *set, uint64_t *count);
100
133 const struct lttng_map_key_set *set, uint64_t index, const struct lttng_map_key **key);
134
146LTTNG_EXPORT extern void lttng_map_key_set_destroy(struct lttng_map_key_set *set);
147
149
150#ifdef __cplusplus
151}
152#endif
153
154#endif /* LTTNG_MAP_KEY_SET_H */
enum lttng_map_key_set_status lttng_map_key_set_get_count(const struct lttng_map_key_set *set, uint64_t *count)
Sets *count to the number of keys in set.
lttng_map_key_type
Type of the keys of a map.
Definition key-type.h:25
void lttng_map_key_set_destroy(struct lttng_map_key_set *set)
Destroys the map key set set.
enum lttng_map_key_set_status lttng_map_key_set_get_at_index(const struct lttng_map_key_set *set, uint64_t index, const struct lttng_map_key **key)
Sets *key to the key at index index in set.
enum lttng_map_key_set_status lttng_map_key_set_get_type(const struct lttng_map_key_set *set, enum lttng_map_key_type *type)
Sets *type to the key type of set.
lttng_map_key_set_status
Status code for map key set functions.
Definition key-set.h:38
@ LTTNG_MAP_KEY_SET_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition key-set.h:43
@ LTTNG_MAP_KEY_SET_STATUS_NOT_FOUND
No matching map key found.
Definition key-set.h:46
@ LTTNG_MAP_KEY_SET_STATUS_OK
Success.
Definition key-set.h:40
Immutable set of map keys (opaque type).
Map key (opaque type).