LTTng control library C API
Loading...
Searching...
No Matches
group-set.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_GROUP_SET_H
10#define LTTNG_MAP_GROUP_SET_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/group.h>
14
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
33
45
68LTTNG_EXPORT extern enum lttng_map_group_set_status
69lttng_map_group_set_get_count(const struct lttng_map_group_set *set, uint64_t *count);
70
103LTTNG_EXPORT extern enum lttng_map_group_set_status
105 uint64_t index,
106 const struct lttng_map_group **group);
107
119LTTNG_EXPORT extern void lttng_map_group_set_destroy(struct lttng_map_group_set *set);
120
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* LTTNG_MAP_GROUP_SET_H */
enum lttng_map_group_set_status lttng_map_group_set_get_count(const struct lttng_map_group_set *set, uint64_t *count)
Sets *count to the number of map groups in set.
void lttng_map_group_set_destroy(struct lttng_map_group_set *set)
Destroys the map group set set.
enum lttng_map_group_set_status lttng_map_group_set_get_at_index(const struct lttng_map_group_set *set, uint64_t index, const struct lttng_map_group **group)
Sets *group to the map group at index index in set.
lttng_map_group_set_status
Status code for map group set functions.
Definition group-set.h:38
@ LTTNG_MAP_GROUP_SET_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition group-set.h:43
@ LTTNG_MAP_GROUP_SET_STATUS_OK
Success.
Definition group-set.h:40
Set of map groups (opaque type).
Map group (opaque type).