X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=db.h;h=3347d3ad239d5fd2d364c99083278f0b0b967a8e;hp=328f7de8cd748814c67542f431c8ca83b782141e;hb=27a031aac0ed4d7b4e45b67afa3cbbb2b7ddb207;hpb=f6dc51ad7914b60fe71a4fc53460925bdc513a9d diff --git a/db.h b/db.h index 328f7de8..3347d3ad 100644 --- a/db.h +++ b/db.h @@ -20,6 +20,13 @@ #include +enum supported_dbtools {DBT_DOPEY, +#ifdef HAVE_MYSQL + DBT_MYSQL, +#endif + NUM_DBTOOLS +}; + int find_audio_files(const char *dirname, int (*f)(const char *, const char *)); /** @@ -112,8 +119,12 @@ int (*pre_select)(fd_set *rfds, fd_set *wfds); * which are ready for reading/writing. */ void (*post_select)(fd_set *rfds, fd_set *wfds); +/** + * each dbtool has its private data pointer */ +void *private_data; }; int mysql_dbtool_init(struct dbtool*); -int dopey_dbtool_init(struct dbtool*); +int plm_dbtool_init(struct dbtool*); +int random_dbtool_init(struct dbtool*);