SoW-2020-0003: Trace Hit Counters
[lttng-tools.git] / include / lttng / map-key.h
CommitLineData
ebdb334b
JR
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
11struct lttng_map_key;
12
13enum 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
19enum 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
24struct lttng_map_key *lttng_map_key_create(void);
25
26enum 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
30enum lttng_map_key_status lttng_map_key_append_token_string(
31 struct lttng_map_key *key, const char *string);
32
33void lttng_map_key_destroy(struct lttng_map_key *key);
34
35#endif /* LTTNG_MAP_KEY_H */
This page took 0.024511 seconds and 5 git commands to generate.