rockbox/tools/database/database.c
Frank Gevaerts 6e11572e07 Make the database tool buildable from configure.
Also update the checkwps makefile to make checkwps builds not break


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22998 a1c6a512-1295-4272-9138-f99709370657
2009-10-07 16:54:15 +00:00

52 lines
822 B
C

/* A _very_ skeleton file to demonstrate building tagcache db on host. */
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include "tagcache.h"
int main(int argc, char **argv)
{
tagcache_init();
tagcache_build(".");
tagcache_reverse_scan();
return 0;
}
/* stub to avoid including all of apps/misc.c */
bool file_exists(const char *file)
{
struct stat s;
if (!stat(file, &s))
return true;
return false;
}
/* stubs to avoid including thread-sdl.c */
#include "kernel.h"
void mutex_init(struct mutex *m)
{
(void)m;
}
void mutex_lock(struct mutex *m)
{
(void)m;
}
void mutex_unlock(struct mutex *m)
{
(void)m;
}
void thread_sdl_thread_lock(void *me)
{
(void)me;
}
void * thread_sdl_thread_unlock(void)
{
return (void*)1;
}