From 538f15cf06de4d6dfc12f8ffacdba9f1af6d3e15 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 12 Nov 2018 16:45:04 +0900 Subject: tree-wide: use CONFIG_PARSER_PROTOTYPE() macro --- src/udev/net/ethtool-util.h | 11 ++++++----- src/udev/net/link-config.h | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'src/udev') 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 #include +#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); -- cgit v1.2.3