aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-09-24 17:57:39 +0200
committerMax Kellermann <max@duempel.org>2009-09-24 17:57:39 +0200
commit1cc4914b246b861035519818f27de9876285b4d1 (patch)
tree5e5720dc66603f0b16c51199dd3ee4fd41c31a5f /src
parentaec18c74ec63de707b35f126bcdb9ed726ec3a22 (diff)
downloadmpd-1cc4914b246b861035519818f27de9876285b4d1.tar.gz
mpd-1cc4914b246b861035519818f27de9876285b4d1.tar.xz
mpd-1cc4914b246b861035519818f27de9876285b4d1.zip
update: renamed directory_update_init() to update_enqueue()
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
-rw-r--r--src/main.c2
-rw-r--r--src/update.c2
-rw-r--r--src/update.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c
index 58e931650..ee25c1d85 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1025,7 +1025,7 @@ handle_update(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
if (argc == 2)
path = g_strdup(argv[1]);
- ret = directory_update_init(path);
+ ret = update_enqueue(path);
if (ret > 0) {
client_printf(client, "updating_db: %i\n", ret);
return COMMAND_RETURN_OK;
diff --git a/src/main.c b/src/main.c
index a0385733c..775ae9a72 100644
--- a/src/main.c
+++ b/src/main.c
@@ -350,7 +350,7 @@ int main(int argc, char *argv[])
if (create_db) {
/* the database failed to load: recreate the
database */
- unsigned job = directory_update_init(NULL);
+ unsigned job = update_enqueue(NULL);
if (job == 0)
g_error("directory update failed");
}
diff --git a/src/update.c b/src/update.c
index cfe574e17..67258e82a 100644
--- a/src/update.c
+++ b/src/update.c
@@ -806,7 +806,7 @@ static void spawn_update_task(char *path)
}
unsigned
-directory_update_init(char *path)
+update_enqueue(char *path)
{
assert(g_thread_self() == main_task);
diff --git a/src/update.h b/src/update.h
index 3b7a5a332..7e81006ce 100644
--- a/src/update.h
+++ b/src/update.h
@@ -33,6 +33,6 @@ isUpdatingDB(void);
* @path will be freed by this function and should not be reused
*/
unsigned
-directory_update_init(char *path);
+update_enqueue(char *path);
#endif