Branch data Line data Source code
1 : : %{
2 : : #include <stddef.h>
3 : : #include "conf-parser.h"
4 : : #include "resolved-conf.h"
5 : : #include "resolved-dnssd.h"
6 : : %}
7 : : struct ConfigPerfItem;
8 : : %null_strings
9 : : %language=ANSI-C
10 : : %define slot-name section_and_lvalue
11 : : %define hash-function-name resolved_dnssd_gperf_hash
12 : : %define lookup-function-name resolved_dnssd_gperf_lookup
13 : : %readonly-tables
14 : : %omit-struct-type
15 : : %struct-type
16 : : %includes
17 : : %%
18 : : Service.Name, config_parse_dnssd_service_name, 0, 0
19 : : Service.Type, config_parse_dnssd_service_type, 0, 0
20 : : Service.Port, config_parse_ip_port, 0, offsetof(DnssdService, port)
21 [ # # ]: 0 : Service.Priority, config_parse_uint16, 0, offsetof(DnssdService, priority)
22 : : Service.Weight, config_parse_uint16, 0, offsetof(DnssdService, weight)
23 : 0 : Service.TxtText, config_parse_dnssd_txt, DNS_TXT_ITEM_TEXT, 0
24 : : Service.TxtData, config_parse_dnssd_txt, DNS_TXT_ITEM_DATA, 0
|