1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/sock_bluetooth_options.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #if defined(BT_SECURITY) || (defined(HAVE_DECL_BT_SECURITY) && HAVE_DECL_BT_SECURITY)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((BT_SECURITY) == (4), "BT_SECURITY != 4");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define BT_SECURITY 4
12 #endif
13 #if defined(BT_SECURITY) || (defined(HAVE_DECL_BT_SECURITY) && HAVE_DECL_BT_SECURITY)
14 #if defined XLAT_PREV_VAL
15 static_assert((unsigned long long) (BT_SECURITY)
16 > (unsigned long long) (XLAT_PREV_VAL),
17 "Incorrect order in #sorted xlat: BT_SECURITY"
18 " is not larger than the previous value");
19 #endif
20 #undef XLAT_PREV_VAL
21 #define XLAT_PREV_VAL (BT_SECURITY)
22 #endif
23 #if defined(BT_DEFER_SETUP) || (defined(HAVE_DECL_BT_DEFER_SETUP) && HAVE_DECL_BT_DEFER_SETUP)
24 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
25 static_assert((BT_DEFER_SETUP) == (7), "BT_DEFER_SETUP != 7");
26 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
27 #else
28 # define BT_DEFER_SETUP 7
29 #endif
30 #if defined(BT_DEFER_SETUP) || (defined(HAVE_DECL_BT_DEFER_SETUP) && HAVE_DECL_BT_DEFER_SETUP)
31 #if defined XLAT_PREV_VAL
32 static_assert((unsigned long long) (BT_DEFER_SETUP)
33 > (unsigned long long) (XLAT_PREV_VAL),
34 "Incorrect order in #sorted xlat: BT_DEFER_SETUP"
35 " is not larger than the previous value");
36 #endif
37 #undef XLAT_PREV_VAL
38 #define XLAT_PREV_VAL (BT_DEFER_SETUP)
39 #endif
40 #if defined(BT_FLUSHABLE) || (defined(HAVE_DECL_BT_FLUSHABLE) && HAVE_DECL_BT_FLUSHABLE)
41 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
42 static_assert((BT_FLUSHABLE) == (8), "BT_FLUSHABLE != 8");
43 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
44 #else
45 # define BT_FLUSHABLE 8
46 #endif
47 #if defined(BT_FLUSHABLE) || (defined(HAVE_DECL_BT_FLUSHABLE) && HAVE_DECL_BT_FLUSHABLE)
48 #if defined XLAT_PREV_VAL
49 static_assert((unsigned long long) (BT_FLUSHABLE)
50 > (unsigned long long) (XLAT_PREV_VAL),
51 "Incorrect order in #sorted xlat: BT_FLUSHABLE"
52 " is not larger than the previous value");
53 #endif
54 #undef XLAT_PREV_VAL
55 #define XLAT_PREV_VAL (BT_FLUSHABLE)
56 #endif
57 #if defined(BT_POWER) || (defined(HAVE_DECL_BT_POWER) && HAVE_DECL_BT_POWER)
58 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
59 static_assert((BT_POWER) == (9), "BT_POWER != 9");
60 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
61 #else
62 # define BT_POWER 9
63 #endif
64 #if defined(BT_POWER) || (defined(HAVE_DECL_BT_POWER) && HAVE_DECL_BT_POWER)
65 #if defined XLAT_PREV_VAL
66 static_assert((unsigned long long) (BT_POWER)
67 > (unsigned long long) (XLAT_PREV_VAL),
68 "Incorrect order in #sorted xlat: BT_POWER"
69 " is not larger than the previous value");
70 #endif
71 #undef XLAT_PREV_VAL
72 #define XLAT_PREV_VAL (BT_POWER)
73 #endif
74 #if defined(BT_CHANNEL_POLICY) || (defined(HAVE_DECL_BT_CHANNEL_POLICY) && HAVE_DECL_BT_CHANNEL_POLICY)
75 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
76 static_assert((BT_CHANNEL_POLICY) == (10), "BT_CHANNEL_POLICY != 10");
77 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
78 #else
79 # define BT_CHANNEL_POLICY 10
80 #endif
81 #if defined(BT_CHANNEL_POLICY) || (defined(HAVE_DECL_BT_CHANNEL_POLICY) && HAVE_DECL_BT_CHANNEL_POLICY)
82 #if defined XLAT_PREV_VAL
83 static_assert((unsigned long long) (BT_CHANNEL_POLICY)
84 > (unsigned long long) (XLAT_PREV_VAL),
85 "Incorrect order in #sorted xlat: BT_CHANNEL_POLICY"
86 " is not larger than the previous value");
87 #endif
88 #undef XLAT_PREV_VAL
89 #define XLAT_PREV_VAL (BT_CHANNEL_POLICY)
90 #endif
91 #if defined(BT_VOICE) || (defined(HAVE_DECL_BT_VOICE) && HAVE_DECL_BT_VOICE)
92 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
93 static_assert((BT_VOICE) == (11), "BT_VOICE != 11");
94 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
95 #else
96 # define BT_VOICE 11
97 #endif
98 #if defined(BT_VOICE) || (defined(HAVE_DECL_BT_VOICE) && HAVE_DECL_BT_VOICE)
99 #if defined XLAT_PREV_VAL
100 static_assert((unsigned long long) (BT_VOICE)
101 > (unsigned long long) (XLAT_PREV_VAL),
102 "Incorrect order in #sorted xlat: BT_VOICE"
103 " is not larger than the previous value");
104 #endif
105 #undef XLAT_PREV_VAL
106 #define XLAT_PREV_VAL (BT_VOICE)
107 #endif
108 #if defined(BT_SNDMTU) || (defined(HAVE_DECL_BT_SNDMTU) && HAVE_DECL_BT_SNDMTU)
109 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
110 static_assert((BT_SNDMTU) == (12), "BT_SNDMTU != 12");
111 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
112 #else
113 # define BT_SNDMTU 12
114 #endif
115 #if defined(BT_SNDMTU) || (defined(HAVE_DECL_BT_SNDMTU) && HAVE_DECL_BT_SNDMTU)
116 #if defined XLAT_PREV_VAL
117 static_assert((unsigned long long) (BT_SNDMTU)
118 > (unsigned long long) (XLAT_PREV_VAL),
119 "Incorrect order in #sorted xlat: BT_SNDMTU"
120 " is not larger than the previous value");
121 #endif
122 #undef XLAT_PREV_VAL
123 #define XLAT_PREV_VAL (BT_SNDMTU)
124 #endif
125 #if defined(BT_RCVMTU) || (defined(HAVE_DECL_BT_RCVMTU) && HAVE_DECL_BT_RCVMTU)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((BT_RCVMTU) == (13), "BT_RCVMTU != 13");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define BT_RCVMTU 13
131 #endif
132 #if defined(BT_RCVMTU) || (defined(HAVE_DECL_BT_RCVMTU) && HAVE_DECL_BT_RCVMTU)
133 #if defined XLAT_PREV_VAL
134 static_assert((unsigned long long) (BT_RCVMTU)
135 > (unsigned long long) (XLAT_PREV_VAL),
136 "Incorrect order in #sorted xlat: BT_RCVMTU"
137 " is not larger than the previous value");
138 #endif
139 #undef XLAT_PREV_VAL
140 #define XLAT_PREV_VAL (BT_RCVMTU)
141 #endif
142 #undef XLAT_PREV_VAL
143
144 #ifndef XLAT_MACROS_ONLY
145
146 # ifdef IN_MPERS
147
148 # error static const struct xlat sock_bluetooth_options in mpers mode
149
150 # else
151
152 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
153 static const struct xlat_data sock_bluetooth_options_xdata[] = {
154 XLAT(BT_SECURITY),
155 #define XLAT_VAL_0 ((unsigned) (BT_SECURITY))
156 #define XLAT_STR_0 STRINGIFY(BT_SECURITY)
157 XLAT(BT_DEFER_SETUP),
158 #define XLAT_VAL_1 ((unsigned) (BT_DEFER_SETUP))
159 #define XLAT_STR_1 STRINGIFY(BT_DEFER_SETUP)
160 XLAT(BT_FLUSHABLE),
161 #define XLAT_VAL_2 ((unsigned) (BT_FLUSHABLE))
162 #define XLAT_STR_2 STRINGIFY(BT_FLUSHABLE)
163 XLAT(BT_POWER),
164 #define XLAT_VAL_3 ((unsigned) (BT_POWER))
165 #define XLAT_STR_3 STRINGIFY(BT_POWER)
166 XLAT(BT_CHANNEL_POLICY),
167 #define XLAT_VAL_4 ((unsigned) (BT_CHANNEL_POLICY))
168 #define XLAT_STR_4 STRINGIFY(BT_CHANNEL_POLICY)
169 XLAT(BT_VOICE),
170 #define XLAT_VAL_5 ((unsigned) (BT_VOICE))
171 #define XLAT_STR_5 STRINGIFY(BT_VOICE)
172 XLAT(BT_SNDMTU),
173 #define XLAT_VAL_6 ((unsigned) (BT_SNDMTU))
174 #define XLAT_STR_6 STRINGIFY(BT_SNDMTU)
175 XLAT(BT_RCVMTU),
176 #define XLAT_VAL_7 ((unsigned) (BT_RCVMTU))
177 #define XLAT_STR_7 STRINGIFY(BT_RCVMTU)
178 };
179 static
180 const struct xlat sock_bluetooth_options[1] = { {
181 .data = sock_bluetooth_options_xdata,
182 .size = ARRAY_SIZE(sock_bluetooth_options_xdata),
183 .type = XT_SORTED,
184 .flags_mask = 0
185 # ifdef XLAT_VAL_0
186 | XLAT_VAL_0
187 # endif
188 # ifdef XLAT_VAL_1
189 | XLAT_VAL_1
190 # endif
191 # ifdef XLAT_VAL_2
192 | XLAT_VAL_2
193 # endif
194 # ifdef XLAT_VAL_3
195 | XLAT_VAL_3
196 # endif
197 # ifdef XLAT_VAL_4
198 | XLAT_VAL_4
199 # endif
200 # ifdef XLAT_VAL_5
201 | XLAT_VAL_5
202 # endif
203 # ifdef XLAT_VAL_6
204 | XLAT_VAL_6
205 # endif
206 # ifdef XLAT_VAL_7
207 | XLAT_VAL_7
208 # endif
209 ,
210 .flags_strsz = 0
211 # ifdef XLAT_STR_0
212 + sizeof(XLAT_STR_0)
213 # endif
214 # ifdef XLAT_STR_1
215 + sizeof(XLAT_STR_1)
216 # endif
217 # ifdef XLAT_STR_2
218 + sizeof(XLAT_STR_2)
219 # endif
220 # ifdef XLAT_STR_3
221 + sizeof(XLAT_STR_3)
222 # endif
223 # ifdef XLAT_STR_4
224 + sizeof(XLAT_STR_4)
225 # endif
226 # ifdef XLAT_STR_5
227 + sizeof(XLAT_STR_5)
228 # endif
229 # ifdef XLAT_STR_6
230 + sizeof(XLAT_STR_6)
231 # endif
232 # ifdef XLAT_STR_7
233 + sizeof(XLAT_STR_7)
234 # endif
235 ,
236 } };
237 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
238
239 # undef XLAT_STR_0
240 # undef XLAT_VAL_0
241 # undef XLAT_STR_1
242 # undef XLAT_VAL_1
243 # undef XLAT_STR_2
244 # undef XLAT_VAL_2
245 # undef XLAT_STR_3
246 # undef XLAT_VAL_3
247 # undef XLAT_STR_4
248 # undef XLAT_VAL_4
249 # undef XLAT_STR_5
250 # undef XLAT_VAL_5
251 # undef XLAT_STR_6
252 # undef XLAT_VAL_6
253 # undef XLAT_STR_7
254 # undef XLAT_VAL_7
255 # endif /* !IN_MPERS */
256
257 #endif /* !XLAT_MACROS_ONLY */