Moved database builder into a separate directory, and gave it its' own Makefile....
[kugel-rb.git] / tools / database / database.c
bloba8be48ab4bff4b2f60409c91043d1aec2227b6c3
1 /* A _very_ skeleton file to demonstrate building tagcache db on host. */
3 #include <stdio.h>
4 #include "tagcache.h"
6 int main(int argc, char **argv)
8 tagcache_init();
9 tagcache_build(".");
10 tagcache_reverse_scan();
12 return 0;
15 /* stub to avoid including all of apps/misc.c */
16 bool file_exists(const char *file)
18 if (!stat(file))
19 return true;
20 return false;
23 /* stubs to avoid including thread-sdl.c */
24 #include "kernel.h"
25 void mutex_init(struct mutex *m)
27 (void)m;
30 void mutex_lock(struct mutex *m)
32 (void)m;
35 void mutex_unlock(struct mutex *m)
37 (void)m;
40 void thread_sdl_thread_lock(void *me)
42 (void)me;
45 void * thread_sdl_thread_unlock(void)
47 return (void*)1;