Mi & save/load: add option to indent or not on config writer creation
[lttng-tools.git] / src / common / config / config.h
index 9a5671ab0c138cb9d7d76d95225f1af524810696..2fed612a1cfbd5783891ec16e99808dc386e3645 100644 (file)
@@ -81,11 +81,14 @@ int config_parse_value(const char *value);
  * 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. The file will be
  * closed once the config_writer has been destroyed.
  *
+ * 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
  * 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.
 
 /*
  * Destroy an instance of a configuration writer.
This page took 0.024282 seconds and 5 git commands to generate.