aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 19:11:54 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 19:11:54 +0200
commit7dd099a60f0a966382e5369ac064f9089ce0c8c9 (patch)
tree9758b6b6f278be7374aefb0487e4aafb4340e46b /src/update.h
parent0677116da0d61097af44e5d84d763ccae450c077 (diff)
downloadmpd-7dd099a60f0a966382e5369ac064f9089ce0c8c9.tar.gz
mpd-7dd099a60f0a966382e5369ac064f9089ce0c8c9.tar.xz
mpd-7dd099a60f0a966382e5369ac064f9089ce0c8c9.zip
update: don't export updateDirectory()
If the user requests database update during startup, call directory_update_init(). This should be changed to fully asynchronous update later. For this to work, main_notify has to be initialized before db_init().
Diffstat (limited to 'src/update.h')
-rw-r--r--src/update.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/update.h b/src/update.h
index 5edf62a57..0c0d74416 100644
--- a/src/update.h
+++ b/src/update.h
@@ -20,19 +20,8 @@
#ifndef UPDATE_H
#define UPDATE_H
-struct directory;
-
-enum update_return {
- UPDATE_RETURN_ERROR = -1,
- UPDATE_RETURN_NOUPDATE = 0,
- UPDATE_RETURN_UPDATED = 1
-};
-
int isUpdatingDB(void);
-enum update_return
-updateDirectory(struct directory *directory);
-
/*
* returns the non-negative update job ID on success,
* returns -1 if busy