/* Generated by ./xlat/gen.sh from ./xlat/netlink_types.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(NLMSG_NOOP) || (defined(HAVE_DECL_NLMSG_NOOP) && HAVE_DECL_NLMSG_NOOP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLMSG_NOOP) == (0x1), "NLMSG_NOOP != 0x1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLMSG_NOOP 0x1
#endif
#if defined(NLMSG_ERROR) || (defined(HAVE_DECL_NLMSG_ERROR) && HAVE_DECL_NLMSG_ERROR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLMSG_ERROR) == (0x2), "NLMSG_ERROR != 0x2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLMSG_ERROR 0x2
#endif
#if defined(NLMSG_DONE) || (defined(HAVE_DECL_NLMSG_DONE) && HAVE_DECL_NLMSG_DONE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLMSG_DONE) == (0x3), "NLMSG_DONE != 0x3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLMSG_DONE 0x3
#endif
#if defined(NLMSG_OVERRUN) || (defined(HAVE_DECL_NLMSG_OVERRUN) && HAVE_DECL_NLMSG_OVERRUN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLMSG_OVERRUN) == (0x4), "NLMSG_OVERRUN != 0x4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLMSG_OVERRUN 0x4
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat netlink_types in mpers mode

# else

static const struct xlat_data netlink_types_xdata[] = {
 [NLMSG_NOOP] = XLAT(NLMSG_NOOP),
 #define XLAT_VAL_0 ((unsigned) (NLMSG_NOOP))
 #define XLAT_STR_0 STRINGIFY(NLMSG_NOOP)
 [NLMSG_ERROR] = XLAT(NLMSG_ERROR),
 #define XLAT_VAL_1 ((unsigned) (NLMSG_ERROR))
 #define XLAT_STR_1 STRINGIFY(NLMSG_ERROR)
 [NLMSG_DONE] = XLAT(NLMSG_DONE),
 #define XLAT_VAL_2 ((unsigned) (NLMSG_DONE))
 #define XLAT_STR_2 STRINGIFY(NLMSG_DONE)
 [NLMSG_OVERRUN] = XLAT(NLMSG_OVERRUN),
 #define XLAT_VAL_3 ((unsigned) (NLMSG_OVERRUN))
 #define XLAT_STR_3 STRINGIFY(NLMSG_OVERRUN)
};
static
const struct xlat netlink_types[1] = { {
 .data = netlink_types_xdata,
 .size = ARRAY_SIZE(netlink_types_xdata),
 .type = XT_INDEXED,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
