chiark / gitweb /
cdaacb18ae191b793920fbfdfab4b25f4c648691
[elogind.git] / src / network / networkd-netdev-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "networkd.h"
5 #include "net-util.h"
6 %}
7 struct ConfigPerfItem;
8 %null_strings
9 %language=ANSI-C
10 %define slot-name section_and_lvalue
11 %define hash-function-name network_netdev_gperf_hash
12 %define lookup-function-name network_netdev_gperf_lookup
13 %readonly-tables
14 %omit-struct-type
15 %struct-type
16 %includes
17 %%
18 Match.Host,              config_parse_net_condition,         CONDITION_HOST,                offsetof(NetDev, condition_host)
19 Match.Virtualization,    config_parse_net_condition,         CONDITION_VIRTUALIZATION,      offsetof(NetDev, condition_virt)
20 Match.KernelCommandLine, config_parse_net_condition,         CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, condition_kernel)
21 NetDev.Description,      config_parse_string,                0,                             offsetof(NetDev, description)
22 NetDev.Name,             config_parse_ifname,                0,                             offsetof(NetDev, name)
23 NetDev.Kind,             config_parse_netdev_kind,           0,                             offsetof(NetDev, kind)
24 VLAN.Id,                 config_parse_uint64,                0,                             offsetof(NetDev, vlanid)