trivial dbtool->selector renames
authorAndre <maan@p133.(none)>
Fri, 10 Mar 2006 19:24:52 +0000 (20:24 +0100)
committerAndre <maan@p133.(none)>
Fri, 10 Mar 2006 19:24:52 +0000 (20:24 +0100)
db.h
mysql.c
plm_dbtool.c
random_dbtool.c
server.c

diff --git a/db.h b/db.h
index bd37d2b..80c0de8 100644 (file)
--- a/db.h
+++ b/db.h
@@ -118,7 +118,7 @@ void (*post_select)(fd_set *rfds, fd_set *wfds);
 void *private_data;
 };
 
-int mysql_dbtool_init(struct audio_file_selector*);
-int plm_dbtool_init(struct audio_file_selector*);
-int random_dbtool_init(struct audio_file_selector*);
+int mysql_selector_init(struct audio_file_selector*);
+int plm_selector_init(struct audio_file_selector*);
+int random_selector_init(struct audio_file_selector*);
 
diff --git a/mysql.c b/mysql.c
index d5d32e5..61d9cfd 100644 (file)
--- a/mysql.c
+++ b/mysql.c
@@ -2516,7 +2516,7 @@ static void shutdown_connection(void)
  *
  * \sa struct audio_file_selector, misc_meta_data::dbinfo, random_dbtool.c
  */
-int mysql_dbtool_init(struct audio_file_selector *db)
+int mysql_selector_init(struct audio_file_selector *db)
 {
        int ret;
 
index f7e085f..d17ac3a 100644 (file)
@@ -277,7 +277,7 @@ void plm_update_audio_file(char *audio_file)
  *
  * \sa struct audio_file_selector, misc_meta_data::dbinfo, mysql.c random_dbtool.c
  */
-int plm_dbtool_init(struct audio_file_selector *db)
+int plm_selector_init(struct audio_file_selector *db)
 {
        int ret;
        struct private_plm_data *ppd = NULL;
index a744155..c860c03 100644 (file)
@@ -135,7 +135,7 @@ static void random_shutdown(void)
  *
  * \sa struct audio_file_selector, misc_meta_data::dbinfo, mysql.c
  */
-int random_dbtool_init(struct audio_file_selector *db)
+int random_selector_init(struct audio_file_selector *db)
 {
        struct timeval now;
 
index 8275ccd..f2835ba 100644 (file)
--- a/server.c
+++ b/server.c
@@ -65,12 +65,12 @@ extern struct audio_format afl[];
 struct audio_file_selector dblist[] = {
        {
                .name = "random",
-               .init = random_dbtool_init,
+               .init = random_selector_init,
                .update_audio_file = NULL,
        },
        {
                .name = "plm",
-               .init = plm_dbtool_init,
+               .init = plm_selector_init,
                .update_audio_file = NULL,
                .pre_select = NULL,
                .post_select = NULL,
@@ -78,7 +78,7 @@ struct audio_file_selector dblist[] = {
 #ifdef HAVE_MYSQL
        {
                .name = "mysql",
-               .init = mysql_dbtool_init,
+               .init = mysql_selector_init,
                .update_audio_file = NULL,
                .pre_select = NULL,
                .post_select = NULL,