-
Notifications
You must be signed in to change notification settings - Fork 0
/
pal_authentication_vouch_mock.patch
64 lines (56 loc) · 2.79 KB
/
pal_authentication_vouch_mock.patch
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
diff --git a/src/implementations/node_abstraction/raft/pal_task_handling.c b/src/implementations/node_abstraction/raft/pal_task_handling.c
index be5c847..0634001 100644
--- a/src/implementations/node_abstraction/raft/pal_task_handling.c
+++ b/src/implementations/node_abstraction/raft/pal_task_handling.c
@@ -11,9 +11,9 @@
#include "pal_types.h"
extern void* raft_node_address;
-void (*raft_set_timer)(uint32_t, uint32_t, void (*)(), void*);
-uint32_t (*raft_create_timer)(void*);
-void (*raft_cancel_timer)(uint32_t, void*);
+extern void (*raft_set_timer)(uint32_t, uint32_t, void (*)(), void*);
+extern uint32_t (*raft_create_timer)(void*);
+extern void (*raft_cancel_timer)(uint32_t, void*);
void pal_timer_create(pal_timer_t* timer_obj) {
assert(raft_create_timer != NULL);
diff --git a/src/implementations/node_abstraction/raft/raft_sysvars.c b/src/implementations/node_abstraction/raft/raft_sysvars.c
index 29fde97..1991c80 100644
--- a/src/implementations/node_abstraction/raft/raft_sysvars.c
+++ b/src/implementations/node_abstraction/raft/raft_sysvars.c
@@ -28,11 +28,11 @@ typedef enum read_variable_result {
const pal_adc_peripheral_info_t
pal_adc_input_table[PAL_ADC_INPUT_TABLE_LENGTH] = PAL_ADC_INPUT_TABLE;
-int (*raft_set_sysvar_int)(char*, int*, void*);
-int (*raft_set_sysvar_float)(char*, float*, void*);
-int (*raft_get_sysvar_int)(char*, int*, void*);
-int (*raft_get_sysvar_float)(char*, float*, void*);
-void* raft_node_address;
+extern int (*raft_set_sysvar_int)(char*, int*, void*);
+extern int (*raft_set_sysvar_float)(char*, float*, void*);
+extern int (*raft_get_sysvar_int)(char*, int*, void*);
+extern int (*raft_get_sysvar_float)(char*, float*, void*);
+extern void* raft_node_address;
/** @brief Prefixes the variable with the appname to make it uniquely identified
* in RAFT.
diff --git a/src/implementations/node_abstraction/raft/raft_time.c b/src/implementations/node_abstraction/raft/raft_time.c
index 8b604ff..c888a8d 100644
--- a/src/implementations/node_abstraction/raft/raft_time.c
+++ b/src/implementations/node_abstraction/raft/raft_time.c
@@ -13,7 +13,7 @@
#include "pal_time.h"
extern void* raft_node_address;
-double (*raft_elapsed_time)(void *);
+extern double (*raft_elapsed_time)(void *);
static paltime_absolute_time_in_ms_t paltime_external_time = 0;
static uint32_t paltime_delta_time_at_update = 0;
diff --git a/src/interface/os_abstraction/logger.c b/src/interface/os_abstraction/logger.c
index 15e93fe..b06abd5 100644
--- a/src/interface/os_abstraction/logger.c
+++ b/src/interface/os_abstraction/logger.c
@@ -17,7 +17,7 @@
#endif
#ifdef BACKEND_ENGINE_RAFT
-void (*raft_log)(const char*, const char*, va_list);
+extern void (*raft_log)(const char*, const char*, va_list);
#endif
/*! \todo Share the Log Severity type (Fatal,Message,Debug) to the underlying