| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
%{ |
| 3 |
#if __GNUC__ >= 15 |
| 4 |
_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") |
| 5 |
#endif |
| 6 |
#include <stddef.h> |
| 7 |
#include "conf-parser.h" |
| 8 |
#include "resolved-dnssd.h" |
| 9 |
%} |
| 10 |
struct ConfigPerfItem; |
| 11 |
%null_strings |
| 12 |
%language=ANSI-C |
| 13 |
%define slot-name section_and_lvalue |
| 14 |
%define hash-function-name resolved_dnssd_gperf_hash |
| 15 |
%define lookup-function-name resolved_dnssd_gperf_lookup |
| 16 |
%readonly-tables |
| 17 |
%omit-struct-type |
| 18 |
%struct-type |
| 19 |
%includes |
| 20 |
%% |
| 21 |
Service.Name, config_parse_dnssd_name, 0, 0 |
| 22 |
Service.Type, config_parse_dnssd_type, 0, 0 |
| 23 |
Service.SubType, config_parse_dnssd_subtype, 0, 0 |
| 24 |
Service.Port, config_parse_ip_port, 0, offsetof(DnssdRegisteredService, port) |
| 25 |
Service.Priority, config_parse_uint16, 0, offsetof(DnssdRegisteredService, priority) |
| 26 |
Service.Weight, config_parse_uint16, 0, offsetof(DnssdRegisteredService, weight) |
| 27 |
Service.TxtText, config_parse_dnssd_txt, DNS_TXT_ITEM_TEXT, 0 |
| 28 |
Service.TxtData, config_parse_dnssd_txt, DNS_TXT_ITEM_DATA, 0 |