X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fconfig.h;h=2fed612a1cfbd5783891ec16e99808dc386e3645;hb=ebbf5ab7ebfa3774d5ca1a26d63013384f7e1407;hp=a11eec9c74a3ac6722ecfc899c2291b15693e41a;hpb=54a9842323bdcf75da5f0e31a433191af7f687fd;p=lttng-tools.git diff --git a/src/common/config/config.h b/src/common/config/config.h index a11eec9c7..2fed612a1 100644 --- a/src/common/config/config.h +++ b/src/common/config/config.h @@ -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. * + * 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. @@ -199,12 +202,13 @@ int config_writer_write_element_string(struct config_writer *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 */