X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=db.h;h=3347d3ad239d5fd2d364c99083278f0b0b967a8e;hp=69d4d9ed04308eb4a5c66505bcb03b3c4762a9c0;hb=27a031aac0ed4d7b4e45b67afa3cbbb2b7ddb207;hpb=c141cc6915a32fb92766dc27f0df222d13f27d8b diff --git a/db.h b/db.h index 69d4d9ed..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,6 +119,9 @@ 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*);