LTTng control library C API
Loading...
Searching...
No Matches
key-template.h
1/*
2 * SPDX-FileCopyrightText: 2026 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_ACTION_KEY_TEMPLATE_H
9#define LTTNG_ACTION_KEY_TEMPLATE_H
10
11#include <lttng/lttng-export.h>
12
13struct lttng_key_template;
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
40
75LTTNG_EXPORT extern struct lttng_key_template *
76lttng_key_template_create_from_string(const char *template_string);
77
116LTTNG_EXPORT extern enum lttng_key_template_status
117lttng_key_template_to_string(const struct lttng_key_template *key_template, char **template_string);
118
132LTTNG_EXPORT extern void lttng_key_template_destroy(struct lttng_key_template *key_template);
133
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif /* LTTNG_ACTION_KEY_TEMPLATE_H */
void lttng_key_template_destroy(struct lttng_key_template *key_template)
Destroys the key template key_template.
enum lttng_key_template_status lttng_key_template_to_string(const struct lttng_key_template *key_template, char **template_string)
Renders the key template key_template back to its template string form.
struct lttng_key_template * lttng_key_template_create_from_string(const char *template_string)
Creates a key template from the template string template_string.
lttng_key_template_status
Return type of key template API functions.
Definition key-template.h:30
@ LTTNG_KEY_TEMPLATE_STATUS_ERROR
Error.
Definition key-template.h:35
@ LTTNG_KEY_TEMPLATE_STATUS_INVALID
Unsatisfied precondition.
Definition key-template.h:38
@ LTTNG_KEY_TEMPLATE_STATUS_OK
Success.
Definition key-template.h:32