LTTng control library C API
Loading...
Searching...
No Matches
key.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_H
10#define LTTNG_MAP_KEY_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/key-type.h>
14
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
32struct lttng_map_key;
33
45
69LTTNG_EXPORT extern enum lttng_map_key_status
71
94LTTNG_EXPORT extern enum lttng_map_key_status
95lttng_map_key_get_index(const struct lttng_map_key *key, uint64_t *index);
96
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* LTTNG_MAP_KEY_H */
enum lttng_map_key_status lttng_map_key_get_type(const struct lttng_map_key *key, enum lttng_map_key_type *type)
Sets *type to the type of key.
enum lttng_map_key_status lttng_map_key_get_index(const struct lttng_map_key *key, uint64_t *index)
Sets *index to the entry index of key.
lttng_map_key_type
Type of the keys of a map.
Definition key-type.h:25
lttng_map_key_status
Status code for map key property accessors.
Definition key.h:38
@ LTTNG_MAP_KEY_STATUS_OK
Success.
Definition key.h:40
@ LTTNG_MAP_KEY_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition key.h:43
Map key (opaque type).