Fix: save: leak of configuration file fd
[lttng-tools.git] / src / common / config / config.h
index 9a5671ab0c138cb9d7d76d95225f1af524810696..1cf0c2a96ebfcfa64d2dd46a860e16236d9b174e 100644 (file)
@@ -78,14 +78,17 @@ int config_parse_value(const char *value);
 /*
  * Create an instance of a configuration writer.
  *
- * fd_output File to which the XML content must be written. The file will be
- * closed once the config_writer has been destroyed.
+ * fd_output File to which the XML content must be written. fd_output is
+ * owned by the caller.
+ *
+ * indent If other than 0 the XML will be pretty printed
+ * with indentation and newline.
  *
  * Returns an instance of a configuration writer on success, NULL on
  * error.
  */
 LTTNG_HIDDEN
-struct config_writer *config_writer_create(int fd_output);
+struct config_writer *config_writer_create(int fd_output, int indent);
 
 /*
  * Destroy an instance of a configuration writer.
This page took 0.022862 seconds and 4 git commands to generate.