9#ifndef LTTNG_MAP_CHANNEL_DESCRIPTOR_H
10#define LTTNG_MAP_CHANNEL_DESCRIPTOR_H
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>
225 uint64_t max_key_count);
327LTTNG_EXPORT
extern void
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).