chiark / gitweb /
udev: add network link configuration tool
[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)