/* ANSI-C code produced by gperf version 3.3 */
/* Command-line: gperf --output-file src/resolve/resolved-dns-delegate-gperf.c ../systemd/src/resolve/resolved-dns-delegate-gperf.gperf  */
/* Computed positions: -k'' */

#line 2 "../systemd/src/resolve/resolved-dns-delegate-gperf.gperf"

#if __GNUC__ >= 15
_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
#endif
#include <stddef.h>
#include "conf-parser.h"
#include "resolved-dns-delegate.h"
#include <string.h>

#define TOTAL_KEYWORDS 3
#define MIN_WORD_LENGTH 12
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 12
#define MAX_HASH_VALUE 21
/* maximum key range = 10, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
/*ARGSUSED*/
static unsigned int
resolved_dns_delegate_gperf_hash (register const char *str, register size_t len)
{
  (void) str;
  return len;
}

const struct ConfigPerfItem *
resolved_dns_delegate_gperf_lookup (register const char *str, register size_t len)
{
#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
  static const struct ConfigPerfItem wordlist[] =
    {
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
#line 21 "../systemd/src/resolve/resolved-dns-delegate-gperf.gperf"
      {"Delegate.DNS",          config_parse_delegate_dns_servers, 0, 0},
      {(char*)0}, {(char*)0}, {(char*)0},
#line 22 "../systemd/src/resolve/resolved-dns-delegate-gperf.gperf"
      {"Delegate.Domains",      config_parse_delegate_domains,     0, 0},
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
#line 23 "../systemd/src/resolve/resolved-dns-delegate-gperf.gperf"
      {"Delegate.DefaultRoute", config_parse_tristate,             0, offsetof(DnsDelegate, default_route)}
    };
#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3)
#pragma GCC diagnostic pop
#endif

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = resolved_dns_delegate_gperf_hash (str, len);

      if (key <= MAX_HASH_VALUE)
        {
          register const char *s = wordlist[key].section_and_lvalue;

          if (s && *str == *s && !strcmp (str + 1, s + 1))
            return &wordlist[key];
        }
    }
  return (struct ConfigPerfItem *) 0;
}
