aboutsummaryrefslogtreecommitdiff
path: root/src/dbUtils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-13 21:36:51 +0200
committerMax Kellermann <max@duempel.org>2011-09-13 21:39:07 +0200
commitb7d2d4cfe8b88174a7b1f41840ddc0b23dbd6a75 (patch)
tree13032fee9c1341f02a2318eb12e3356f87f74d74 /src/dbUtils.h
parenta6c797ee4b8e83c031961b22e449f083e79fe7af (diff)
database: don't allow uri==NULL
Add nonnull attributes and fix all callers.
Diffstat (limited to 'src/dbUtils.h')
-rw-r--r--src/dbUtils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dbUtils.h b/src/dbUtils.h
index f693a779..40594652 100644
--- a/src/dbUtils.h
+++ b/src/dbUtils.h
@@ -20,23 +20,26 @@
#ifndef MPD_DB_UTILS_H
#define MPD_DB_UTILS_H
+#include "gcc.h"
+
#include <glib.h>
#include <stdbool.h>
struct locate_item_list;
struct player_control;
+gcc_nonnull(1,2)
bool
addAllIn(struct player_control *pc, const char *uri, GError **error_r);
+gcc_nonnull(1,2)
bool
addAllInToStoredPlaylist(const char *uri_utf8, const char *path_utf8,
GError **error_r);
+gcc_nonnull(1,2,3)
bool
findAddIn(struct player_control *pc, const char *name,
const struct locate_item_list *criteria, GError **error_r);
-unsigned long sumSongTimesIn(const char *name);
-
#endif