X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fsession-config.h;h=1a6019fb122ed8fdb00195e29e324b01b8f3f071;hb=04db765912be2929f69b00d3732338b891a756b8;hp=82400a5ae8fa1073caba517eec8d355323c429e5;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/config/session-config.h b/src/common/config/session-config.h index 82400a5ae..1a6019fb1 100644 --- a/src/common/config/session-config.h +++ b/src/common/config/session-config.h @@ -200,6 +200,23 @@ LTTNG_HIDDEN int config_writer_write_element_string(struct config_writer *writer, const char *element_name, const char *value); +/* + * Write an element of type double. + * + * writer An instance of a configuration writer. + * + * element_name Element name. + * + * value Double value of the element + * + * Returns zero if the element's value could be written. + * Negative values indicate an error. + */ +LTTNG_HIDDEN +int config_writer_write_element_double(struct config_writer *writer, + const char *element_name, + double value); + /* * Load session configurations from a file. *