• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_info_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IFLA_INFO_UNSPEC) || (defined(HAVE_DECL_IFLA_INFO_UNSPEC) && HAVE_DECL_IFLA_INFO_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IFLA_INFO_UNSPEC) == (0), "IFLA_INFO_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IFLA_INFO_UNSPEC 0
12 #endif
13 #if defined(IFLA_INFO_KIND) || (defined(HAVE_DECL_IFLA_INFO_KIND) && HAVE_DECL_IFLA_INFO_KIND)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((IFLA_INFO_KIND) == (1), "IFLA_INFO_KIND != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define IFLA_INFO_KIND 1
19 #endif
20 #if defined(IFLA_INFO_DATA) || (defined(HAVE_DECL_IFLA_INFO_DATA) && HAVE_DECL_IFLA_INFO_DATA)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((IFLA_INFO_DATA) == (2), "IFLA_INFO_DATA != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define IFLA_INFO_DATA 2
26 #endif
27 #if defined(IFLA_INFO_XSTATS) || (defined(HAVE_DECL_IFLA_INFO_XSTATS) && HAVE_DECL_IFLA_INFO_XSTATS)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((IFLA_INFO_XSTATS) == (3), "IFLA_INFO_XSTATS != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define IFLA_INFO_XSTATS 3
33 #endif
34 #if defined(IFLA_INFO_SLAVE_KIND) || (defined(HAVE_DECL_IFLA_INFO_SLAVE_KIND) && HAVE_DECL_IFLA_INFO_SLAVE_KIND)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((IFLA_INFO_SLAVE_KIND) == (4), "IFLA_INFO_SLAVE_KIND != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define IFLA_INFO_SLAVE_KIND 4
40 #endif
41 #if defined(IFLA_INFO_SLAVE_DATA) || (defined(HAVE_DECL_IFLA_INFO_SLAVE_DATA) && HAVE_DECL_IFLA_INFO_SLAVE_DATA)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((IFLA_INFO_SLAVE_DATA) == (5), "IFLA_INFO_SLAVE_DATA != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define IFLA_INFO_SLAVE_DATA 5
47 #endif
48 
49 #ifndef XLAT_MACROS_ONLY
50 
51 # ifdef IN_MPERS
52 
53 #  error static const struct xlat rtnl_ifla_info_attrs in mpers mode
54 
55 # else
56 
57 static
58 const struct xlat rtnl_ifla_info_attrs[] = {
59  XLAT(IFLA_INFO_UNSPEC),
60  XLAT(IFLA_INFO_KIND),
61  XLAT(IFLA_INFO_DATA),
62  XLAT(IFLA_INFO_XSTATS),
63  XLAT(IFLA_INFO_SLAVE_KIND),
64  XLAT(IFLA_INFO_SLAVE_DATA),
65  XLAT_END
66 };
67 
68 # endif /* !IN_MPERS */
69 
70 #endif /* !XLAT_MACROS_ONLY */
71