StickerDatabase: add pure/const attributes
This commit is contained in:
parent
ffea268d2e
commit
e452d1f5b4
@ -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);
|
|||||||
/**
|
/**
|
||||||
* 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);
|
|||||||
* @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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user