X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Futils.hpp;fp=src%2Fbin%2Flttng-sessiond%2Futils.hpp;h=5cbf7487ff5abb7a1b7e3cbbdcdfab550e754b5b;hp=0000000000000000000000000000000000000000;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c diff --git a/src/bin/lttng-sessiond/utils.hpp b/src/bin/lttng-sessiond/utils.hpp new file mode 100644 index 000000000..5cbf7487f --- /dev/null +++ b/src/bin/lttng-sessiond/utils.hpp @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2011 EfficiOS Inc. + * + * SPDX-License-Identifier: GPL-2.0-only + * + */ + +#ifndef _LTT_UTILS_H +#define _LTT_UTILS_H + +struct lttng_ht; +struct ltt_session; +struct consumer_output; + +const char *get_home_dir(void); +int notify_thread_pipe(int wpipe); +int loglevels_match(int a_loglevel_type, int a_loglevel_value, + int b_loglevel_type, int b_loglevel_value, int loglevel_all_type); +const char *session_get_base_path(const struct ltt_session *session); +const char *consumer_output_get_base_path(const struct consumer_output *output); + +#endif /* _LTT_UTILS_H */