Logging: pass dynamic log level to common functions and subsystems
[babeltrace.git] / src / ctfser / ctfser.h
index c59af924152bd5e704c66b9ebe6cc80f09ce773d..f8bbfae2de70558b3fd90686148759e331c4206b 100644 (file)
@@ -72,6 +72,9 @@ struct bt_ctfser {
 
        /* Stream file's path (for debugging) */
        GString *path;
+
+       /* Serializer's log level */
+       int log_level;
 };
 
 /*
@@ -80,7 +83,8 @@ struct bt_ctfser {
  * This function opens the file `path` for writing.
  */
 BT_HIDDEN
-int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path);
+int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path,
+               int log_level);
 
 /*
  * Finalizes a CTF serializer.
This page took 0.023308 seconds and 4 git commands to generate.