From f3cafcf0887c03886c433175bcfd48010cef272d Mon Sep 17 00:00:00 2001 From: Svetlana Shmidt Date: Tue, 15 Sep 2020 10:57:22 +0000 Subject: [PATCH] add comments to functions with typed_value --- src/daemon/metric.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/daemon/metric.h b/src/daemon/metric.h index b3ee24504..7c7b4f321 100644 --- a/src/daemon/metric.h +++ b/src/daemon/metric.h @@ -61,8 +61,14 @@ typedef struct { metric_type_t type; } typed_value_t; +/* return a copy of typed_value_t val + * if type is METRIC_TYPE_DISTRIBUTION then distribution will be cloned + * that means that it should be freed */ typed_value_t typed_value_clone(typed_value_t val); +/* create a typed_value_t object from val and type + * if type is METRIC_TYPE_DISTRIBUTION then distribution will be cloned + * that means that it should be freed */ typed_value_t typed_value_create(value_t val, metric_type_t type); /* value_marshal_text prints a text representation of v to buf. */ -- 2.47.3