1 /* Generated by ./xlat/gen.sh from ./xlat/isdn_protocols.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(ISDN_P_BASE) || (defined(HAVE_DECL_ISDN_P_BASE) && HAVE_DECL_ISDN_P_BASE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((ISDN_P_BASE) == (0), "ISDN_P_BASE != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define ISDN_P_BASE 0
12 #endif
13 #if defined(ISDN_P_TE_S0) || (defined(HAVE_DECL_ISDN_P_TE_S0) && HAVE_DECL_ISDN_P_TE_S0)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((ISDN_P_TE_S0) == (1), "ISDN_P_TE_S0 != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define ISDN_P_TE_S0 1
19 #endif
20 #if defined(ISDN_P_NT_S0) || (defined(HAVE_DECL_ISDN_P_NT_S0) && HAVE_DECL_ISDN_P_NT_S0)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((ISDN_P_NT_S0) == (2), "ISDN_P_NT_S0 != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define ISDN_P_NT_S0 2
26 #endif
27 #if defined(ISDN_P_TE_E1) || (defined(HAVE_DECL_ISDN_P_TE_E1) && HAVE_DECL_ISDN_P_TE_E1)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((ISDN_P_TE_E1) == (3), "ISDN_P_TE_E1 != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define ISDN_P_TE_E1 3
33 #endif
34 #if defined(ISDN_P_NT_E1) || (defined(HAVE_DECL_ISDN_P_NT_E1) && HAVE_DECL_ISDN_P_NT_E1)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((ISDN_P_NT_E1) == (4), "ISDN_P_NT_E1 != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define ISDN_P_NT_E1 4
40 #endif
41 #if defined(ISDN_P_LAPD_TE) || (defined(HAVE_DECL_ISDN_P_LAPD_TE) && HAVE_DECL_ISDN_P_LAPD_TE)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((ISDN_P_LAPD_TE) == (0x10), "ISDN_P_LAPD_TE != 0x10");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define ISDN_P_LAPD_TE 0x10
47 #endif
48 #if defined(ISDN_P_LAPD_NT) || (defined(HAVE_DECL_ISDN_P_LAPD_NT) && HAVE_DECL_ISDN_P_LAPD_NT)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((ISDN_P_LAPD_NT) == (0x11), "ISDN_P_LAPD_NT != 0x11");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define ISDN_P_LAPD_NT 0x11
54 #endif
55 #if defined(ISDN_P_B_RAW) || (defined(HAVE_DECL_ISDN_P_B_RAW) && HAVE_DECL_ISDN_P_B_RAW)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((ISDN_P_B_RAW) == (0x21), "ISDN_P_B_RAW != 0x21");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define ISDN_P_B_RAW 0x21
61 #endif
62 #if defined(ISDN_P_B_HDLC) || (defined(HAVE_DECL_ISDN_P_B_HDLC) && HAVE_DECL_ISDN_P_B_HDLC)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((ISDN_P_B_HDLC) == (0x22), "ISDN_P_B_HDLC != 0x22");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define ISDN_P_B_HDLC 0x22
68 #endif
69 #if defined(ISDN_P_B_X75SLP) || (defined(HAVE_DECL_ISDN_P_B_X75SLP) && HAVE_DECL_ISDN_P_B_X75SLP)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((ISDN_P_B_X75SLP) == (0x23), "ISDN_P_B_X75SLP != 0x23");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define ISDN_P_B_X75SLP 0x23
75 #endif
76 #if defined(ISDN_P_B_L2DTMF) || (defined(HAVE_DECL_ISDN_P_B_L2DTMF) && HAVE_DECL_ISDN_P_B_L2DTMF)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((ISDN_P_B_L2DTMF) == (0x24), "ISDN_P_B_L2DTMF != 0x24");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define ISDN_P_B_L2DTMF 0x24
82 #endif
83 #if defined(ISDN_P_B_L2DSP) || (defined(HAVE_DECL_ISDN_P_B_L2DSP) && HAVE_DECL_ISDN_P_B_L2DSP)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((ISDN_P_B_L2DSP) == (0x25), "ISDN_P_B_L2DSP != 0x25");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define ISDN_P_B_L2DSP 0x25
89 #endif
90 #if defined(ISDN_P_B_L2DSPHDLC) || (defined(HAVE_DECL_ISDN_P_B_L2DSPHDLC) && HAVE_DECL_ISDN_P_B_L2DSPHDLC)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((ISDN_P_B_L2DSPHDLC) == (0x26), "ISDN_P_B_L2DSPHDLC != 0x26");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define ISDN_P_B_L2DSPHDLC 0x26
96 #endif
97 
98 #ifndef XLAT_MACROS_ONLY
99 
100 # ifdef IN_MPERS
101 
102 #  error static const struct xlat isdn_protocols in mpers mode
103 
104 # else
105 
106 static
107 const struct xlat isdn_protocols[] = {
108  XLAT(ISDN_P_BASE),
109  XLAT(ISDN_P_TE_S0),
110  XLAT(ISDN_P_NT_S0),
111  XLAT(ISDN_P_TE_E1),
112  XLAT(ISDN_P_NT_E1),
113  XLAT(ISDN_P_LAPD_TE),
114  XLAT(ISDN_P_LAPD_NT),
115  XLAT(ISDN_P_B_RAW),
116  XLAT(ISDN_P_B_HDLC),
117  XLAT(ISDN_P_B_X75SLP),
118  XLAT(ISDN_P_B_L2DTMF),
119  XLAT(ISDN_P_B_L2DSP),
120  XLAT(ISDN_P_B_L2DSPHDLC),
121 /*
122 * those two are present in include/linux/mISDNif.h but are not handled during
123 * socket creation.
124 */
125 
126 
127  XLAT_END
128 };
129 
130 # endif /* !IN_MPERS */
131 
132 #endif /* !XLAT_MACROS_ONLY */
133