1 /* Generated by ./xlat/gen.sh from ./xlat/sock_irda_options.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IRLMP_ENUMDEVICES) || (defined(HAVE_DECL_IRLMP_ENUMDEVICES) && HAVE_DECL_IRLMP_ENUMDEVICES) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IRLMP_ENUMDEVICES) == (1), "IRLMP_ENUMDEVICES != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IRLMP_ENUMDEVICES 1 12 #endif 13 #if defined(IRLMP_IAS_SET) || (defined(HAVE_DECL_IRLMP_IAS_SET) && HAVE_DECL_IRLMP_IAS_SET) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IRLMP_IAS_SET) == (2), "IRLMP_IAS_SET != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IRLMP_IAS_SET 2 19 #endif 20 #if defined(IRLMP_IAS_QUERY) || (defined(HAVE_DECL_IRLMP_IAS_QUERY) && HAVE_DECL_IRLMP_IAS_QUERY) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IRLMP_IAS_QUERY) == (3), "IRLMP_IAS_QUERY != 3"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IRLMP_IAS_QUERY 3 26 #endif 27 #if defined(IRLMP_HINTS_SET) || (defined(HAVE_DECL_IRLMP_HINTS_SET) && HAVE_DECL_IRLMP_HINTS_SET) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IRLMP_HINTS_SET) == (4), "IRLMP_HINTS_SET != 4"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IRLMP_HINTS_SET 4 33 #endif 34 #if defined(IRLMP_QOS_SET) || (defined(HAVE_DECL_IRLMP_QOS_SET) && HAVE_DECL_IRLMP_QOS_SET) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IRLMP_QOS_SET) == (5), "IRLMP_QOS_SET != 5"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IRLMP_QOS_SET 5 40 #endif 41 #if defined(IRLMP_QOS_GET) || (defined(HAVE_DECL_IRLMP_QOS_GET) && HAVE_DECL_IRLMP_QOS_GET) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IRLMP_QOS_GET) == (6), "IRLMP_QOS_GET != 6"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IRLMP_QOS_GET 6 47 #endif 48 #if defined(IRLMP_MAX_SDU_SIZE) || (defined(HAVE_DECL_IRLMP_MAX_SDU_SIZE) && HAVE_DECL_IRLMP_MAX_SDU_SIZE) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IRLMP_MAX_SDU_SIZE) == (7), "IRLMP_MAX_SDU_SIZE != 7"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IRLMP_MAX_SDU_SIZE 7 54 #endif 55 #if defined(IRLMP_IAS_GET) || (defined(HAVE_DECL_IRLMP_IAS_GET) && HAVE_DECL_IRLMP_IAS_GET) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((IRLMP_IAS_GET) == (8), "IRLMP_IAS_GET != 8"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define IRLMP_IAS_GET 8 61 #endif 62 #if defined(IRLMP_IAS_DEL) || (defined(HAVE_DECL_IRLMP_IAS_DEL) && HAVE_DECL_IRLMP_IAS_DEL) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((IRLMP_IAS_DEL) == (9), "IRLMP_IAS_DEL != 9"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define IRLMP_IAS_DEL 9 68 #endif 69 #if defined(IRLMP_HINT_MASK_SET) || (defined(HAVE_DECL_IRLMP_HINT_MASK_SET) && HAVE_DECL_IRLMP_HINT_MASK_SET) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((IRLMP_HINT_MASK_SET) == (10), "IRLMP_HINT_MASK_SET != 10"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define IRLMP_HINT_MASK_SET 10 75 #endif 76 #if defined(IRLMP_WAITDEVICE) || (defined(HAVE_DECL_IRLMP_WAITDEVICE) && HAVE_DECL_IRLMP_WAITDEVICE) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((IRLMP_WAITDEVICE) == (11), "IRLMP_WAITDEVICE != 11"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define IRLMP_WAITDEVICE 11 82 #endif 83 84 #ifndef XLAT_MACROS_ONLY 85 86 # ifdef IN_MPERS 87 88 # error static const struct xlat sock_irda_options in mpers mode 89 90 # else 91 92 static 93 const struct xlat sock_irda_options[] = { 94 [IRLMP_ENUMDEVICES] = XLAT(IRLMP_ENUMDEVICES), 95 [IRLMP_IAS_SET] = XLAT(IRLMP_IAS_SET), 96 [IRLMP_IAS_QUERY] = XLAT(IRLMP_IAS_QUERY), 97 [IRLMP_HINTS_SET] = XLAT(IRLMP_HINTS_SET), 98 [IRLMP_QOS_SET] = XLAT(IRLMP_QOS_SET), 99 [IRLMP_QOS_GET] = XLAT(IRLMP_QOS_GET), 100 [IRLMP_MAX_SDU_SIZE] = XLAT(IRLMP_MAX_SDU_SIZE), 101 [IRLMP_IAS_GET] = XLAT(IRLMP_IAS_GET), 102 [IRLMP_IAS_DEL] = XLAT(IRLMP_IAS_DEL), 103 [IRLMP_HINT_MASK_SET] = XLAT(IRLMP_HINT_MASK_SET), 104 [IRLMP_WAITDEVICE] = XLAT(IRLMP_WAITDEVICE), 105 XLAT_END 106 }; 107 108 # endif /* !IN_MPERS */ 109 110 #endif /* !XLAT_MACROS_ONLY */ 111