summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8059545)
raw | patch | inline | side by side (parent: 8059545)
author | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 08:52:58 +0000 (10:52 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 08:52:58 +0000 (10:52 +0200) |
This avoids listing the same fields twice.
src/libcollectdclient/collectd/server.h | patch | blob | history | |
src/libcollectdclient/server.c | patch | blob | history |
index 48b5874418ec8c2dded749f6a171717e45486760..d19021734d30e364cd3098d1cc66aebc96d61f7d 100644 (file)
* lcc_network_parse() if set to NULL. */
lcc_network_parser_t parser;
- /* writer is the callback used to send incoming lcc_value_list_t to. */
- lcc_value_list_writer_t writer;
+ /* parse_options contains options for parser and is passed on verbatimely. */
+ lcc_network_parse_options_t parse_options;
/* buffer_size determines the maximum packet size to accept. */
uint16_t buffer_size;
- /* password_lookup is used to look up the password for a given username. */
- lcc_password_lookup_t password_lookup;
-
- /* security_level is the minimal required security level. */
- lcc_security_level_t security_level;
-
/* interface is the name of the interface to use when subscribing to a
* multicast group. Has no effect when using unicast. */
char *interface;
index 68e4a9ea1aee2f505930207ad65429bd68a33c03..1c4a1013726743e228d7394bfd6732c37282a093 100644 (file)
break;
}
- (void)srv.parser(buffer, (size_t)len,
- (lcc_network_parse_options_t){
- .writer = srv.writer,
- .password_lookup = srv.password_lookup,
- .security_level = srv.security_level,
- });
+ (void)srv.parser(buffer, (size_t)len, srv.parse_options);
}
if (close_socket) {