summaryrefslogtreecommitdiff
path: root/src/network/networkd-fdb.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-22 13:10:17 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-22 13:18:44 +0200
commita2106925257945fa2cfc8735fcb49ebcaff609d6 (patch)
treed3b3968918f8bbf4767c5d77f6ecedacaad9f367 /src/network/networkd-fdb.h
parent1f12b48a730bfbca991d0ae51e3a740d59faf201 (diff)
downloadsystemd-a2106925257945fa2cfc8735fcb49ebcaff609d6.tar.gz
tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macro
This makes most header files easier to look at. Also Emacs gets really slow when browsing through large sections of overly long prototypes, which is much improved by this macro. We should probably not do something similar with too many other cases, as macros like this might help readability for some, but make it worse for others. But I think given the complexity of this specific prototype and how often we use it, it's worth doing.
Diffstat (limited to 'src/network/networkd-fdb.h')
-rw-r--r--src/network/networkd-fdb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkd-fdb.h b/src/network/networkd-fdb.h
index 04bf69773a..e3ab53ab9f 100644
--- a/src/network/networkd-fdb.h
+++ b/src/network/networkd-fdb.h
@@ -7,6 +7,7 @@
Copyright (C) 2014 Intel Corporation. All rights reserved.
***/
+#include "conf-parser.h"
#include "list.h"
#include "macro.h"
@@ -30,5 +31,5 @@ int fdb_entry_configure(Link *link, FdbEntry *fdb_entry);
DEFINE_TRIVIAL_CLEANUP_FUNC(FdbEntry*, fdb_entry_free);
-int config_parse_fdb_hwaddr(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
-int config_parse_fdb_vlan_id(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr);
+CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id);