aboutsummaryrefslogtreecommitdiffstats
path: root/src/StickerDatabase.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 19:39:22 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 19:39:22 +0200
commite452d1f5b42fac9acdd4d8e5d86eb28b73a3bbc6 (patch)
tree226fc074d95dea2012ba5152aadb286b303bf869 /src/StickerDatabase.hxx
parentffea268d2e0a36fbc7a16f5fe14c7554a2eb56b3 (diff)
downloadmpd-e452d1f5b42fac9acdd4d8e5d86eb28b73a3bbc6.tar.gz
mpd-e452d1f5b42fac9acdd4d8e5d86eb28b73a3bbc6.tar.xz
mpd-e452d1f5b42fac9acdd4d8e5d86eb28b73a3bbc6.zip
StickerDatabase: add pure/const attributes
Diffstat (limited to '')
-rw-r--r--src/StickerDatabase.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/StickerDatabase.hxx b/src/StickerDatabase.hxx
index b3f4c63b8..834d9a703 100644
--- a/src/StickerDatabase.hxx
+++ b/src/StickerDatabase.hxx
@@ -42,6 +42,8 @@
#ifndef MPD_STICKER_DATABASE_HXX
#define MPD_STICKER_DATABASE_HXX
+#include "Compiler.h"
+
class Error;
class Path;
struct sticker;
@@ -65,6 +67,7 @@ sticker_global_finish(void);
/**
* Returns true if the sticker database is configured and available.
*/
+gcc_const
bool
sticker_enabled(void);
@@ -112,6 +115,7 @@ sticker_free(struct sticker *sticker);
* @param name the name of the sticker
* @return the sticker value, or NULL if none was found
*/
+gcc_pure
const char *
sticker_get_value(const struct sticker *sticker, const char *name);