Commit e452d1f5 authored by Max Kellermann's avatar Max Kellermann

StickerDatabase: add pure/const attributes

parent ffea268d
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#ifndef MPD_STICKER_DATABASE_HXX #ifndef MPD_STICKER_DATABASE_HXX
#define MPD_STICKER_DATABASE_HXX #define MPD_STICKER_DATABASE_HXX
#include "Compiler.h"
class Error; class Error;
class Path; class Path;
struct sticker; struct sticker;
...@@ -65,6 +67,7 @@ sticker_global_finish(void); ...@@ -65,6 +67,7 @@ sticker_global_finish(void);
/** /**
* Returns true if the sticker database is configured and available. * Returns true if the sticker database is configured and available.
*/ */
gcc_const
bool bool
sticker_enabled(void); sticker_enabled(void);
...@@ -112,6 +115,7 @@ sticker_free(struct sticker *sticker); ...@@ -112,6 +115,7 @@ sticker_free(struct sticker *sticker);
* @param name the name of the sticker * @param name the name of the sticker
* @return the sticker value, or NULL if none was found * @return the sticker value, or NULL if none was found
*/ */
gcc_pure
const char * const char *
sticker_get_value(const struct sticker *sticker, const char *name); sticker_get_value(const struct sticker *sticker, const char *name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment