diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-29 00:20:14 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-29 14:23:49 +0900 |
commit | 7e19cc54628bb320209ebab15b3b5d119fbccd00 (patch) | |
tree | 36965d2cfe9b72570939c4045b35bc8b6f481979 /src/shared/net-condition.h | |
parent | 1929ed0e5897222422fc6e5c1d7b17ec9c1e36af (diff) | |
download | systemd-7e19cc54628bb320209ebab15b3b5d119fbccd00.tar.gz |
net-condition: move net_match_config() and related conf parsers
Diffstat (limited to 'src/shared/net-condition.h')
-rw-r--r-- | src/shared/net-condition.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/shared/net-condition.h b/src/shared/net-condition.h new file mode 100644 index 0000000000..31d5d01aa6 --- /dev/null +++ b/src/shared/net-condition.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include <linux/nl80211.h> +#include <stdbool.h> + +#include "sd-device.h" + +#include "conf-parser.h" +#include "ether-addr-util.h" +#include "set.h" + +bool net_match_config( + Set *match_mac, + Set *match_permanent_mac, + char * const *match_paths, + char * const *match_drivers, + char * const *match_iftypes, + char * const *match_names, + char * const *match_property, + char * const *match_wifi_iftype, + char * const *match_ssid, + Set *match_bssid, + sd_device *device, + const struct ether_addr *dev_mac, + const struct ether_addr *dev_permanent_mac, + const char *dev_driver, + unsigned short dev_iftype, + const char *dev_name, + char * const *alternative_names, + enum nl80211_iftype dev_wifi_iftype, + const char *dev_ssid, + const struct ether_addr *dev_bssid); + +CONFIG_PARSER_PROTOTYPE(config_parse_net_condition); +CONFIG_PARSER_PROTOTYPE(config_parse_match_strv); +CONFIG_PARSER_PROTOTYPE(config_parse_match_ifnames); +CONFIG_PARSER_PROTOTYPE(config_parse_match_property); |