diff options
Diffstat (limited to 'tools/database/database.c')
-rw-r--r-- | tools/database/database.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/database/database.c b/tools/database/database.c new file mode 100644 index 0000000000..a8be48ab4b --- /dev/null +++ b/tools/database/database.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* A _very_ skeleton file to demonstrate building tagcache db on host. */ | ||
2 | |||
3 | #include <stdio.h> | ||
4 | #include "tagcache.h" | ||
5 | |||
6 | int main(int argc, char **argv) | ||
7 | { | ||
8 | tagcache_init(); | ||
9 | tagcache_build("."); | ||
10 | tagcache_reverse_scan(); | ||
11 | |||
12 | return 0; | ||
13 | } | ||
14 | |||
15 | /* stub to avoid including all of apps/misc.c */ | ||
16 | bool file_exists(const char *file) | ||
17 | { | ||
18 | if (!stat(file)) | ||
19 | return true; | ||
20 | return false; | ||
21 | } | ||
22 | |||
23 | /* stubs to avoid including thread-sdl.c */ | ||
24 | #include "kernel.h" | ||
25 | void mutex_init(struct mutex *m) | ||
26 | { | ||
27 | (void)m; | ||
28 | } | ||
29 | |||
30 | void mutex_lock(struct mutex *m) | ||
31 | { | ||
32 | (void)m; | ||
33 | } | ||
34 | |||
35 | void mutex_unlock(struct mutex *m) | ||
36 | { | ||
37 | (void)m; | ||
38 | } | ||
39 | |||
40 | void thread_sdl_thread_lock(void *me) | ||
41 | { | ||
42 | (void)me; | ||
43 | } | ||
44 | |||
45 | void * thread_sdl_thread_unlock(void) | ||
46 | { | ||
47 | return (void*)1; | ||
48 | } | ||
49 | |||