Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_nsid_attrs.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(NETNSA_NSID_NOT_ASSIGNED) || (defined(HAVE_DECL_NETNSA_NSID_NOT_ASSIGNED) && HAVE_DECL_NETNSA_NSID_NOT_ASSIGNED)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((NETNSA_NSID_NOT_ASSIGNED) == (-1), "NETNSA_NSID_NOT_ASSIGNED != -1");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define NETNSA_NSID_NOT_ASSIGNED -1
     12 #endif
     13 #if defined(NETNSA_NONE) || (defined(HAVE_DECL_NETNSA_NONE) && HAVE_DECL_NETNSA_NONE)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((NETNSA_NONE) == (0), "NETNSA_NONE != 0");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define NETNSA_NONE 0
     19 #endif
     20 #if defined(NETNSA_NSID) || (defined(HAVE_DECL_NETNSA_NSID) && HAVE_DECL_NETNSA_NSID)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((NETNSA_NSID) == (1), "NETNSA_NSID != 1");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define NETNSA_NSID 1
     26 #endif
     27 #if defined(NETNSA_PID) || (defined(HAVE_DECL_NETNSA_PID) && HAVE_DECL_NETNSA_PID)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((NETNSA_PID) == (2), "NETNSA_PID != 2");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define NETNSA_PID 2
     33 #endif
     34 #if defined(NETNSA_FD) || (defined(HAVE_DECL_NETNSA_FD) && HAVE_DECL_NETNSA_FD)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((NETNSA_FD) == (3), "NETNSA_FD != 3");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define NETNSA_FD 3
     40 #endif
     41 
     42 #ifndef XLAT_MACROS_ONLY
     43 
     44 # ifdef IN_MPERS
     45 
     46 #  error static const struct xlat rtnl_nsid_attrs in mpers mode
     47 
     48 # else
     49 
     50 static
     51 const struct xlat rtnl_nsid_attrs[] = {
     52  XLAT(NETNSA_NSID_NOT_ASSIGNED),
     53  XLAT(NETNSA_NONE),
     54  XLAT(NETNSA_NSID),
     55  XLAT(NETNSA_PID),
     56  XLAT(NETNSA_FD),
     57  XLAT_END
     58 };
     59 
     60 # endif /* !IN_MPERS */
     61 
     62 #endif /* !XLAT_MACROS_ONLY */
     63