diff options
author | Max Kellermann <max@duempel.org> | 2009-09-24 21:39:43 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-09-24 21:39:43 +0200 |
commit | b0e1a3d34c9720db7acd244fa54321b3c2c982c6 (patch) | |
tree | 5515b8a62059ea34e70c5c362710284b1fae9af9 /src/update.h | |
parent | 1cc4914b246b861035519818f27de9876285b4d1 (diff) | |
download | mpd-b0e1a3d34c9720db7acd244fa54321b3c2c982c6.tar.gz mpd-b0e1a3d34c9720db7acd244fa54321b3c2c982c6.tar.xz mpd-b0e1a3d34c9720db7acd244fa54321b3c2c982c6.zip |
update: pass const string to update_enqueue()
Duplicate the path string within update.c, do not expect an allocated
string as parameter.
Diffstat (limited to '')
-rw-r--r-- | src/update.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/update.h b/src/update.h index 7e81006ce..9a51afc01 100644 --- a/src/update.h +++ b/src/update.h @@ -27,12 +27,14 @@ void update_global_finish(void); unsigned isUpdatingDB(void); -/* - * returns the positive update job ID on success, - * returns 0 if busy - * @path will be freed by this function and should not be reused +/** + * Add this path to the database update queue. + * + * @param path a path to update; if NULL or an empty string, + * the whole music directory is updated + * @return the job id, or 0 on error */ unsigned -update_enqueue(char *path); +update_enqueue(const char *path); #endif |