diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 16:45:04 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 16:45:04 +0900 |
commit | 538f15cf06de4d6dfc12f8ffacdba9f1af6d3e15 (patch) | |
tree | 63a3dcf92dd67bd40204ead4331cacb851fbfc9f /src/udev/net | |
parent | 3b00878ef68bad2a40b343742d6d77b22fce37f5 (diff) | |
download | systemd-538f15cf06de4d6dfc12f8ffacdba9f1af6d3e15.tar.gz |
tree-wide: use CONFIG_PARSER_PROTOTYPE() macro
Diffstat (limited to 'src/udev/net')
-rw-r--r-- | src/udev/net/ethtool-util.h | 11 | ||||
-rw-r--r-- | src/udev/net/link-config.h | 5 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/udev/net/ethtool-util.h b/src/udev/net/ethtool-util.h index abb0cd0264..73c4d447d1 100644 --- a/src/udev/net/ethtool-util.h +++ b/src/udev/net/ethtool-util.h @@ -4,6 +4,7 @@ #include <macro.h> #include <linux/ethtool.h> +#include "conf-parser.h" #include "missing.h" struct link_config; @@ -119,8 +120,8 @@ NetDevPort port_from_string(const char *port) _pure_; const char *advertise_to_string(NetDevAdvertise advertise) _const_; NetDevAdvertise advertise_from_string(const char *advertise) _pure_; -int config_parse_duplex(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_wol(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_port(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_channel(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_advertise(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_duplex); +CONFIG_PARSER_PROTOTYPE(config_parse_wol); +CONFIG_PARSER_PROTOTYPE(config_parse_port); +CONFIG_PARSER_PROTOTYPE(config_parse_channel); +CONFIG_PARSER_PROTOTYPE(config_parse_advertise); diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h index ca6c8ddabe..88e3651b7b 100644 --- a/src/udev/net/link-config.h +++ b/src/udev/net/link-config.h @@ -4,6 +4,7 @@ #include "sd-device.h" #include "condition.h" +#include "conf-parser.h" #include "ethtool-util.h" #include "list.h" #include "set.h" @@ -82,5 +83,5 @@ MACPolicy mac_policy_from_string(const char *p) _pure_; /* gperf lookup function */ const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, GPERF_LEN_TYPE length); -int config_parse_mac_policy(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_name_policy(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_mac_policy); +CONFIG_PARSER_PROTOTYPE(config_parse_name_policy); |