X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.hpp;fp=src%2Fbin%2Flttng%2Fconf.hpp;h=e1260c772371f34910bc5fe3989ec467c41caff8;hp=0000000000000000000000000000000000000000;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c diff --git a/src/bin/lttng/conf.hpp b/src/bin/lttng/conf.hpp new file mode 100644 index 000000000..e1260c772 --- /dev/null +++ b/src/bin/lttng/conf.hpp @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2011 EfficiOS Inc. + * + * SPDX-License-Identifier: GPL-2.0-only + * + */ + +#ifndef _LTTNG_CONFIG_H +#define _LTTNG_CONFIG_H + +#define CONFIG_FILENAME ".lttngrc" + +void config_destroy(const char *path); +void config_destroy_default(void); +int config_exists(const char *path); +int config_init(const char *path); +int config_add_session_name(const char *path, const char *name); + +/* Must free() the return pointer */ +char *config_read_session_name(const char *path); +char *config_read_session_name_quiet(const char *path); +char *config_get_file_path(const char *path); + +#endif /* _LTTNG_CONFIG_H */