• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./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_DEFER_SETUP) || (defined(HAVE_DECL_BT_DEFER_SETUP) && HAVE_DECL_BT_DEFER_SETUP)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((BT_DEFER_SETUP) == (7), "BT_DEFER_SETUP != 7");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define BT_DEFER_SETUP 7
19 #endif
20 #if defined(BT_FLUSHABLE) || (defined(HAVE_DECL_BT_FLUSHABLE) && HAVE_DECL_BT_FLUSHABLE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((BT_FLUSHABLE) == (8), "BT_FLUSHABLE != 8");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define BT_FLUSHABLE 8
26 #endif
27 #if defined(BT_POWER) || (defined(HAVE_DECL_BT_POWER) && HAVE_DECL_BT_POWER)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((BT_POWER) == (9), "BT_POWER != 9");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define BT_POWER 9
33 #endif
34 #if defined(BT_CHANNEL_POLICY) || (defined(HAVE_DECL_BT_CHANNEL_POLICY) && HAVE_DECL_BT_CHANNEL_POLICY)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((BT_CHANNEL_POLICY) == (10), "BT_CHANNEL_POLICY != 10");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define BT_CHANNEL_POLICY 10
40 #endif
41 #if defined(BT_VOICE) || (defined(HAVE_DECL_BT_VOICE) && HAVE_DECL_BT_VOICE)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((BT_VOICE) == (11), "BT_VOICE != 11");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define BT_VOICE 11
47 #endif
48 #if defined(BT_SNDMTU) || (defined(HAVE_DECL_BT_SNDMTU) && HAVE_DECL_BT_SNDMTU)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((BT_SNDMTU) == (12), "BT_SNDMTU != 12");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define BT_SNDMTU 12
54 #endif
55 #if defined(BT_RCVMTU) || (defined(HAVE_DECL_BT_RCVMTU) && HAVE_DECL_BT_RCVMTU)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((BT_RCVMTU) == (13), "BT_RCVMTU != 13");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define BT_RCVMTU 13
61 #endif
62 
63 #ifndef XLAT_MACROS_ONLY
64 
65 # ifdef IN_MPERS
66 
67 #  error static const struct xlat sock_bluetooth_options in mpers mode
68 
69 # else
70 
71 static
72 const struct xlat sock_bluetooth_options[] = {
73 
74  XLAT(BT_SECURITY),
75  XLAT(BT_DEFER_SETUP),
76  XLAT(BT_FLUSHABLE),
77  XLAT(BT_POWER),
78  XLAT(BT_CHANNEL_POLICY),
79  XLAT(BT_VOICE),
80  XLAT(BT_SNDMTU),
81  XLAT(BT_RCVMTU),
82  XLAT_END
83 };
84 
85 # endif /* !IN_MPERS */
86 
87 #endif /* !XLAT_MACROS_ONLY */
88