Commit | Line | Data |
---|---|---|
beb8c75a | 1 | /* |
21cf9b6b | 2 | * Copyright (C) 2011 EfficiOS Inc. |
beb8c75a | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
beb8c75a | 5 | * |
beb8c75a DG |
6 | */ |
7 | ||
8 | #ifndef _LTTNG_CONFIG_H | |
9 | #define _LTTNG_CONFIG_H | |
10 | ||
58a97671 | 11 | #define CONFIG_FILENAME ".lttngrc" |
beb8c75a | 12 | |
9b27c721 | 13 | void config_destroy(const char *path); |
d6a07e7d FG |
14 | void config_destroy_default(void); |
15 | int config_exists(const char *path); | |
9b27c721 JG |
16 | int config_init(const char *path); |
17 | int config_add_session_name(const char *path, const char *name); | |
beb8c75a DG |
18 | |
19 | /* Must free() the return pointer */ | |
9b27c721 JG |
20 | char *config_read_session_name(const char *path); |
21 | char *config_read_session_name_quiet(const char *path); | |
22 | char *config_get_file_path(const char *path); | |
beb8c75a DG |
23 | |
24 | #endif /* _LTTNG_CONFIG_H */ |