We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65bbb58 commit 822ab7aCopy full SHA for 822ab7a
nvram_faker_main.c
@@ -0,0 +1,33 @@
1
+/*
2
+ * test driver to debug nvram-faker code without
3
+ * having to LD_PRELOAD a lib.
4
+ */
5
+#include <stdio.h>
6
+#include <stdlib.h>
7
+
8
+#ifndef DEBUG
9
+#define DEBUG
10
+#endif
11
12
+#ifndef NVRAM_EXE
13
+#define NVRAM_EXE
14
15
16
+//#ifndef INI_FILE_PATH
17
+#define INI_FILE_PATH "./nvram.ini"
18
+//#endif
19
20
+#include "nvram-faker-internal.h"
21
22
+extern void initialize_ini(void);
23
+extern void end(void);
24
25
+int main(void)
26
+{
27
+ DEBUG_PRINTF("calling initalize_ini().\n");
28
+ initialize_ini();
29
+ DEBUG_PRINTF("calling end().\n");
30
+ end();
31
+ DEBUG_PRINTF("Done.\n");
32
+ return 0;
33
+}
0 commit comments