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