chiark / gitweb /
udev: link-config - move naming policy from udev rules
[elogind.git] / src / udev / net / link-config-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "link-config.h"
5 %}
6 struct ConfigPerfItem;
7 %null_strings
8 %language=ANSI-C
9 %define slot-name section_and_lvalue
10 %define hash-function-name link_config_gperf_hash
11 %define lookup-function-name link_config_gperf_lookup
12 %readonly-tables
13 %omit-struct-type
14 %struct-type
15 %includes
16 %%
17 Match.MACAddress,                   config_parse_string,        0, offsetof(link_config, match_mac)
18 Match.Path,                         config_parse_string,        0, offsetof(link_config, match_path)
19 Match.Driver,                       config_parse_string,        0, offsetof(link_config, match_driver)
20 Match.Type,                         config_parse_string,        0, offsetof(link_config, match_type)
21 Link.Description,                   config_parse_string,        0, offsetof(link_config, description)
22 Link.MACAddress,                    config_parse_string,        0, offsetof(link_config, mac)
23 Link.NamePolicy,                    config_parse_strv,          0, offsetof(link_config, name_policy)
24 Link.Name,                          config_parse_string,        0, offsetof(link_config, name)
25 Link.MTU,                           config_parse_unsigned,      0, offsetof(link_config, mtu)
26 Link.SpeedMBytes,                   config_parse_unsigned,      0, offsetof(link_config, speed)
27 Link.Duplex,                        config_parse_string,        0, offsetof(link_config, duplex)
28 Link.WakeOnLan,                     config_parse_string,        0, offsetof(link_config, wol)