#ifndef TRACKDB_H
#define TRACKDB_H
-#include <pcre.h>
-
#include "event.h"
+#include "regexp.h"
#include "rights.h"
extern const struct cache_type cache_files_type;
#define TRACKDB_READ_ONLY 0x0020
void trackdb_init(int flags);
-void trackdb_deinit(void);
+void trackdb_deinit(ev_source *ev);
/* close/close environment */
void trackdb_master(struct ev_source *ev);
};
char **trackdb_list(const char *dir, int *np, enum trackdb_listable what,
- const pcre *rec);
+ const regexp *rec);
/* Return the directories and/or files below DIR. If DIR is a null pointer
* then concatenate the listing of all collections.
*
void trackdb_gc(void);
/* tidy up old database log files */
-void trackdb_set_global(const char *name,
- const char *value,
- const char *who);
+int trackdb_set_global(const char *name,
+ const char *value,
+ const char *who);
/* set a global pref (remove if value=0). */
const char *trackdb_get_global(const char *name);
char **trackdb_new(int *ntracksp, int maxtracks);
void trackdb_expire_noticed(time_t when);
-void trackdb_old_users(void);
void trackdb_create_root(void);
const char *trackdb_get_password(const char *user);
int trackdb_adduser(const char *user,
void *ru);
int trackdb_rescan_underway(void);
-int playlist_parse_name(const char *name,
- char **ownerp,
- char **sharep);
int trackdb_playlist_get(const char *name,
const char *who,
char ***tracksp,