1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
39
40
41
42
43
44
45
46
47
52
53
/* ... */
#define BTSTACK_FILE__ "btstack_tlv.c"
/* ... */
#include "btstack_tlv.h"
#include "btstack_debug.h"
static const btstack_tlv_t * btstack_tlv_singleton_impl;
static void * btstack_tlv_singleton_context;
void btstack_tlv_set_instance(const btstack_tlv_t * tlv_impl, void * tlv_context){
log_info("TLV Instance %p", tlv_impl);
btstack_tlv_singleton_impl = tlv_impl;
btstack_tlv_singleton_context = tlv_context;
}{ ... }
void btstack_tlv_get_instance(const btstack_tlv_t ** tlv_impl, void ** tlv_context){
*tlv_impl = btstack_tlv_singleton_impl;
*tlv_context = btstack_tlv_singleton_context;
}{ ... }