X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/ffac51d73ab97c4c9c1e6c43b18d54d716000bf6..601b42c1d28069afd8a8ba694baefb76e6ea5171:/lib/trackdb.h?ds=sidebyside diff --git a/lib/trackdb.h b/lib/trackdb.h index b0f601e..e39de6e 100644 --- a/lib/trackdb.h +++ b/lib/trackdb.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2005, 2006, 2007 Richard Kettlewell + * Copyright (C) 2005-2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -136,7 +136,7 @@ char **trackdb_search(char **wordlist, int nwordlist, int *ntracks); /* return a list of tracks containing all of the words given. If you * ask for only stopwords you get no tracks. */ -void trackdb_rescan(struct ev_source *ev, int check); +void trackdb_rescan(struct ev_source *ev, int recheck); /* Start a rescan, if one is not running already */ int trackdb_rescan_cancel(void); @@ -172,6 +172,11 @@ char **trackdb_listusers(void); int trackdb_confirm(const char *user, const char *confirmation, rights_type *rightsp); +typedef void random_callback(struct ev_source *ev, + const char *track); +int trackdb_request_random(struct ev_source *ev, + random_callback *callback); + #endif /* TRACKDB_H */ /*