From e452d1f5b42fac9acdd4d8e5d86eb28b73a3bbc6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 19:39:22 +0200 Subject: StickerDatabase: add pure/const attributes --- src/StickerDatabase.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3