X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Floglevel.h;h=06dcbaa8647e03de2d46deda97c34e57ebbcdf87;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=100d33267f719627662f61175bec7ed20d60d8fc;hpb=7e8f2e9cce651c81094a864bbffefcaa4bcc7a51;p=lttng-tools.git diff --git a/src/bin/lttng/loglevel.h b/src/bin/lttng/loglevel.h index 100d33267..06dcbaa86 100644 --- a/src/bin/lttng/loglevel.h +++ b/src/bin/lttng/loglevel.h @@ -11,19 +11,47 @@ #include #include -LTTNG_HIDDEN +#ifdef __cplusplus +extern "C" { +#endif + int loglevel_name_to_value(const char *name, enum lttng_loglevel *loglevel); -LTTNG_HIDDEN +bool loglevel_parse_range_string(const char *str, + enum lttng_loglevel *min, + enum lttng_loglevel *max); + int loglevel_log4j_name_to_value( const char *name, enum lttng_loglevel_log4j *loglevel); -LTTNG_HIDDEN +bool loglevel_log4j_parse_range_string(const char *str, + enum lttng_loglevel_log4j *min, + enum lttng_loglevel_log4j *max); + int loglevel_jul_name_to_value( const char *name, enum lttng_loglevel_jul *loglevel); -LTTNG_HIDDEN +bool loglevel_jul_parse_range_string(const char *str, + enum lttng_loglevel_jul *min, + enum lttng_loglevel_jul *max); + int loglevel_python_name_to_value( const char *name, enum lttng_loglevel_python *loglevel); +bool loglevel_python_parse_range_string(const char *str, + enum lttng_loglevel_python *min, + enum lttng_loglevel_python *max); + +const char *loglevel_value_to_name(int loglevel); + +const char *loglevel_log4j_value_to_name(int loglevel); + +const char *loglevel_jul_value_to_name(int loglevel); + +const char *loglevel_python_value_to_name(int loglevel); + +#ifdef __cplusplus +} +#endif + #endif /* _LTTNG_LOGLEVEL_UTILS_H */