src/database.h File Reference
#include <glib.h>
#include <sys/time.h>
#include <stdbool.h>
Go to the source code of this file.
Function Documentation
static bool db_exists |
( |
void |
|
) |
[inline, static] |
Returns true if there is a valid database file on the disk.
Definition at line 80 of file database.h.
struct directory* db_get_directory |
( |
const char * |
name |
) |
[read] |
time_t db_get_mtime |
( |
void |
|
) |
|
struct directory* db_get_root |
( |
void |
|
) |
[read] |
Returns the root directory object.
Returns NULL if there is no configured music directory.
struct song* db_get_song |
( |
const char * |
file |
) |
[read] |
void db_init |
( |
const char * |
path |
) |
|
Initialize the database library.
- Parameters:
-
| path | the absolute path of the database file |
bool db_load |
( |
GError ** |
error |
) |
|
int db_walk |
( |
const char * |
name, |
|
|
int(*)(struct song *, void *) |
forEachSong, |
|
|
int(*)(struct directory *, void *) |
forEachDir, |
|
|
void * |
data | |
|
) |
| | |