SoW-2020-0002: Trace Hit Counters
[lttng-tools.git] / include / lttng / map-key.h
1 /*
2 * Copyright (C) 2021 Francis Deslauriers <francis.deslauriers@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_MAP_KEY_H
9 #define LTTNG_MAP_KEY_H
10
11 struct lttng_map_key;
12
13 enum lttng_map_key_status {
14 LTTNG_MAP_KEY_STATUS_ERROR = -2,
15 LTTNG_MAP_KEY_STATUS_INVALID = -1,
16 LTTNG_MAP_KEY_STATUS_OK = 0,
17 };
18
19 enum lttng_map_key_token_variable_type {
20 LTTNG_MAP_KEY_TOKEN_VARIABLE_TYPE_EVENT_NAME,
21 LTTNG_MAP_KEY_TOKEN_VARIABLE_TYPE_PROVIDER_NAME,
22 };
23
24 struct lttng_map_key *lttng_map_key_create(void);
25
26 enum lttng_map_key_status lttng_map_key_append_token_variable(
27 struct lttng_map_key *key,
28 enum lttng_map_key_token_variable_type var_type);
29
30 enum lttng_map_key_status lttng_map_key_append_token_string(
31 struct lttng_map_key *key, const char *string);
32
33 void lttng_map_key_destroy(struct lttng_map_key *key);
34
35 #endif /* LTTNG_MAP_KEY_H */
This page took 0.030318 seconds and 5 git commands to generate.