From b0e1a3d34c9720db7acd244fa54321b3c2c982c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Sep 2009 21:39:43 +0200 Subject: update: pass const string to update_enqueue() Duplicate the path string within update.c, do not expect an allocated string as parameter. --- src/update.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/update.h') 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 -- cgit v1.2.3