Add utils_generate_optstring() to libcommon
[lttng-tools.git] / src / common / utils.h
index c23dfb932e147fe3de5ea68b6509cb082d3a792d..e92ca7006542e2e8cd5276e27eac197f29e7c681 100644 (file)
@@ -21,6 +21,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdint.h>
+#include <getopt.h>
 
 #define KIBI_LOG2 10
 #define MEBI_LOG2 20
@@ -47,5 +48,7 @@ int utils_get_count_order_u32(uint32_t x);
 char *utils_get_home_dir(void);
 size_t utils_get_current_time_str(const char *format, char *dst, size_t len);
 gid_t utils_get_group_id(const char *name);
+char *utils_generate_optstring(const struct option *long_options,
+               size_t opt_count);
 
 #endif /* _COMMON_UTILS_H */
This page took 0.023738 seconds and 4 git commands to generate.