]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
add comments to functions with typed_value
authorSvetlana Shmidt <sshmidt@google.com>
Tue, 15 Sep 2020 10:57:22 +0000 (10:57 +0000)
committerSvetlana Shmidt <sshmidt@google.com>
Tue, 15 Sep 2020 10:57:22 +0000 (10:57 +0000)
src/daemon/metric.h

index b3ee245048215ea9b2387b0b7ffbafc51796fb96..7c7b4f321b4958c72e82c8e18f6ac453b0da1189 100644 (file)
@@ -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. */