#define _CONFIG_H
#include <common/config/ini.h>
+#include <common/config/config-session-abi.h>
#include <common/macros.h>
#include <stdint.h>
* 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
-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.
* sessions from path if NULL.
*
* override Override current session configuration if it exists.
+ * autoload Tell to load the auto session(s).
*
* Returns zero if the session could be loaded successfully. Returns
* a negative LTTNG_ERR code on error.
*/
LTTNG_HIDDEN
int config_load_session(const char *path, const char *session_name,
- int override);
+ int override, unsigned int autoload);
#endif /* _CONFIG_H */