X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fconfig%2Fsession-config.h;h=1a6019fb122ed8fdb00195e29e324b01b8f3f071;hb=2b1664007528accb47d09633a5198b668358c722;hp=82400a5ae8fa1073caba517eec8d355323c429e5;hpb=878fea902b1c509b61be1f18494edb1f647733b4;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. *