LTTng control library C API
Loading...
Searching...
No Matches
channel-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_CHANNEL_SET_H
10#define LTTNG_MAP_CHANNEL_SET_H
11
12#include <lttng/lttng-export.h>
13
14#include <stdint.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26
34
46
69LTTNG_EXPORT extern enum lttng_map_channel_set_status
70lttng_map_channel_set_get_count(const struct lttng_map_channel_set *set, uint64_t *count);
71
104LTTNG_EXPORT extern enum lttng_map_channel_set_status
106 uint64_t index,
107 const struct lttng_map_channel **channel);
108
120LTTNG_EXPORT extern void lttng_map_channel_set_destroy(struct lttng_map_channel_set *set);
121
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif /* LTTNG_MAP_CHANNEL_SET_H */
enum lttng_map_channel_set_status lttng_map_channel_set_get_at_index(const struct lttng_map_channel_set *set, uint64_t index, const struct lttng_map_channel **channel)
Sets *channel to the map channel at index index in set.
void lttng_map_channel_set_destroy(struct lttng_map_channel_set *set)
Destroys the map channel set set.
enum lttng_map_channel_set_status lttng_map_channel_set_get_count(const struct lttng_map_channel_set *set, uint64_t *count)
Sets *count to the number of map channels in set.
lttng_map_channel_set_status
Status code for map channel set functions.
Definition channel-set.h:39
@ LTTNG_MAP_CHANNEL_SET_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition channel-set.h:44
@ LTTNG_MAP_CHANNEL_SET_STATUS_OK
Success.
Definition channel-set.h:41
Set of map channels (opaque type).
Map channel (opaque type).