aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 20:07:30 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 20:08:50 +0100
commitdf2d0414837ec0b53836f9c32e0f93d3baaefb14 (patch)
tree46c49a7c27864fabea467d7a39e4da2898e0973b /src
parentffc6e195486b67ced358702b1381118ddb14b23d (diff)
downloadmpd-df2d0414837ec0b53836f9c32e0f93d3baaefb14.tar.gz
mpd-df2d0414837ec0b53836f9c32e0f93d3baaefb14.tar.xz
mpd-df2d0414837ec0b53836f9c32e0f93d3baaefb14.zip
database: add "pure" attributes
Diffstat (limited to 'src')
-rw-r--r--src/database.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/database.h b/src/database.h
index b71ae7268..f877b74d3 100644
--- a/src/database.h
+++ b/src/database.h
@@ -47,6 +47,7 @@ db_finish(void);
* Returns the root directory object. Returns NULL if there is no
* configured music directory.
*/
+G_GNUC_PURE
struct directory *
db_get_root(void);
@@ -54,10 +55,12 @@ db_get_root(void);
* Caller must lock the #db_mutex.
*/
gcc_nonnull(1)
+G_GNUC_PURE
struct directory *
db_get_directory(const char *name);
gcc_nonnull(1)
+G_GNUC_PURE
struct song *
db_get_song(const char *file);
@@ -79,12 +82,14 @@ db_save(GError **error_r);
bool
db_load(GError **error);
+G_GNUC_PURE
time_t
db_get_mtime(void);
/**
* Returns true if there is a valid database file on the disk.
*/
+G_GNUC_PURE
static inline bool
db_exists(void)
{