aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 21:45:32 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 21:45:41 +0200
commitb93523c0b1009f7ff3e6f1629ad11ab7594333fb (patch)
tree8bd615e90ac647c04ed9a0301c09575a736074a4 /src/UpdateGlue.hxx
parent7ef40de98bb3cbf2fd1fe693871a30064d7ef41b (diff)
downloadmpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.tar.gz
mpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.tar.xz
mpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.zip
UpdateGlue: never pass null to update_enqueue()
Diffstat (limited to '')
-rw-r--r--src/UpdateGlue.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/UpdateGlue.hxx b/src/UpdateGlue.hxx
index 9d546a2a3..c9fc0f9a1 100644
--- a/src/UpdateGlue.hxx
+++ b/src/UpdateGlue.hxx
@@ -20,6 +20,8 @@
#ifndef MPD_UPDATE_GLUE_HXX
#define MPD_UPDATE_GLUE_HXX
+#include "Compiler.h"
+
void update_global_init(void);
void update_global_finish(void);
@@ -30,10 +32,11 @@ isUpdatingDB(void);
/**
* Add this path to the database update queue.
*
- * @param path a path to update; if NULL or an empty string,
+ * @param path a path to update; if an empty string,
* the whole music directory is updated
* @return the job id, or 0 on error
*/
+gcc_nonnull_all
unsigned
update_enqueue(const char *path, bool discard);