summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c593a0)
raw | patch | inline | side by side (parent: 0c593a0)
author | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 11:14:36 +0000 (13:14 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 11:14:36 +0000 (13:14 +0200) |
No, we should not, because memory allocation is more annoying in C.
src/libcollectdclient/collectd/network_parse.h | patch | blob | history |
diff --git a/src/libcollectdclient/collectd/network_parse.h b/src/libcollectdclient/collectd/network_parse.h
index abd632c4450769f0746b2eb5c57b31467c263e57..0cd9a7927680754191d81fb594d4a6166242ce8f 100644 (file)
#include "collectd/lcc_features.h"
-#include "collectd/types.h"
#include "collectd/network.h" /* for lcc_security_level_t */
+#include "collectd/types.h"
#include <stdint.h>
/* lcc_network_parse parses data received from the network and calls "w" with
* the parsed lcc_value_list_ts. */
-/* TODO(octo): the Go code returns a []api.ValueList. Should we return a
- * value_list_t** here? */
int lcc_network_parse(void *buffer, size_t buffer_size,
lcc_network_parse_options_t opts);