Fix error.h non-static variables for liblttng-ctl
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index c5887fe65ead21a41f637aafa3adc10d60e0eb45..da93da1cc35078ec232bd0997d023509dec56807 100644 (file)
@@ -41,6 +41,18 @@ static char sessiond_sock_path[PATH_MAX];
 static char *tracing_group;
 static int connected;
 
+/* Global */
+
+/*
+ * Those two variables are used by error.h to silent or control the verbosity of
+ * error message. They are global to the library so application linking with it
+ * are able to compile correctly and also control verbosity of the library.
+ *
+ * Note that it is *not* possible to silent ERR() and PERROR() macros.
+ */
+int lttng_opt_quiet;
+int lttng_opt_verbose;
+
 /*
  * Copy string from src to dst and enforce null terminated byte.
  */
This page took 0.024347 seconds and 4 git commands to generate.