X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.h;h=6e478b39eb3609f90aa3ad1ab3b5a4200754411c;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=570216d53c9709dddcfaf480f68a465bc0a8f294;hpb=240baf2b88e34c1600aa2d11a1f1d9a11af4893f;p=lttng-tools.git diff --git a/src/common/utils.h b/src/common/utils.h index 570216d53..6e478b39e 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -17,12 +17,14 @@ #include +#if defined(__cplusplus) +extern "C" { +#endif + #define KIBI_LOG2 10 #define MEBI_LOG2 20 #define GIBI_LOG2 30 -char *utils_partial_realpath(const char *path, char *resolved_path, - size_t size); char *utils_expand_path(const char *path); char *utils_expand_path_keep_symlink(const char *path); int utils_create_pipe(int *dst); @@ -67,8 +69,11 @@ enum lttng_error_code utils_group_id_from_name( * - `str` is zero length * - `str` contains invalid */ -LTTNG_HIDDEN int utils_parse_unsigned_long_long(const char *str, unsigned long long *value); +#if defined(__cplusplus) +} +#endif + #endif /* _COMMON_UTILS_H */