LTTng control library C API
Loading...
Searching...
No Matches
channel-descriptor.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_DESCRIPTOR_H
10#define LTTNG_MAP_CHANNEL_DESCRIPTOR_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/channel-type.h>
14#include <lttng/map/channel-update-policy.h>
15#include <lttng/map/value-type.h>
16
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
35
50
84LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
86 const char *name);
87
131LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
133 const char **name);
134
163LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
165 enum lttng_map_channel_type *type);
166
189LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
191 enum lttng_map_value_type *value_type);
192
223LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
225 uint64_t max_key_count);
226
254LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
256 const struct lttng_map_channel_descriptor *descriptor, uint64_t *max_key_count);
257
282LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
285
312LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
315
327LTTNG_EXPORT extern void
329
331
332#ifdef __cplusplus
333}
334#endif
335
336#endif /* LTTNG_MAP_CHANNEL_DESCRIPTOR_H */
void lttng_map_channel_descriptor_destroy(struct lttng_map_channel_descriptor *descriptor)
Destroys the map channel descriptor descriptor.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_set_max_key_count(struct lttng_map_channel_descriptor *descriptor, uint64_t max_key_count)
Sets the maximum key count property of the map channel described by descriptor to max_key_count.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_get_name(const struct lttng_map_channel_descriptor *descriptor, const char **name)
Sets *name to the name of the map channel described by descriptor.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_set_update_policy(struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_update_policy policy)
Sets the update policy property of the map channel described by descriptor to policy.
lttng_map_channel_update_policy
Update policy of a map channel.
Definition channel-update-policy.h:25
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_set_name(struct lttng_map_channel_descriptor *descriptor, const char *name)
Sets the name of the map channel described by descriptor to a copy of name.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_get_type(const struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_type *type)
Sets *type to the type of the map channel described by descriptor.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_get_max_key_count(const struct lttng_map_channel_descriptor *descriptor, uint64_t *max_key_count)
Sets *max_key_count to the maximum key count property of the map channel described by descriptor.
lttng_map_channel_type
Type of a map channel.
Definition channel-type.h:25
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_get_value_type(const struct lttng_map_channel_descriptor *descriptor, enum lttng_map_value_type *value_type)
Sets *value_type to the value type of the map channel described by descriptor.
lttng_map_channel_descriptor_status
Status code for map channel descriptor property accessors.
Definition channel-descriptor.h:40
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_get_update_policy(const struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_update_policy *policy)
Sets *policy to the update policy property of the map channel described by descriptor.
@ LTTNG_MAP_CHANNEL_DESCRIPTOR_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition channel-descriptor.h:48
@ LTTNG_MAP_CHANNEL_DESCRIPTOR_STATUS_UNSET
Property is not set.
Definition channel-descriptor.h:45
@ LTTNG_MAP_CHANNEL_DESCRIPTOR_STATUS_OK
Success.
Definition channel-descriptor.h:42
lttng_map_value_type
Type of the values of a map.
Definition value-type.h:25
Map channel descriptor (opaque type).