+int trackdb_confirm(const char *user, const char *confirmation,
+ rights_type *rightsp);
+int trackdb_readable(void);
+
+typedef void random_callback(struct ev_source *ev,
+ const char *track);
+int trackdb_request_random(struct ev_source *ev,
+ random_callback *callback);
+void trackdb_add_rescanned(void (*rescanned)(void *ru),
+ 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,
+ int *ntracksp,
+ char **sharep);
+int trackdb_playlist_set(const char *name,
+ const char *who,
+ char **tracks,
+ int ntracks,
+ const char *share);
+void trackdb_playlist_list(const char *who,
+ char ***playlistsp,
+ int *nplaylistsp);
+int trackdb_playlist_delete(const char *name,
+ const char *who);