aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 09:50:50 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 10:04:03 +0100
commitf8d114be42663006d162311c1ecaf4306e0b72e4 (patch)
tree250c10ad3f8d08887626d2b0da220bd03995efe9
parent2c70251df19f2a92214a380ffbdfdb40a649d9bc (diff)
downloadmpd-f8d114be42663006d162311c1ecaf4306e0b72e4.tar.gz
mpd-f8d114be42663006d162311c1ecaf4306e0b72e4.tar.xz
mpd-f8d114be42663006d162311c1ecaf4306e0b72e4.zip
db/UpdateIO: add "pure" attributes
Diffstat (limited to '')
-rw-r--r--src/db/update/UpdateIO.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/update/UpdateIO.hxx b/src/db/update/UpdateIO.hxx
index 819879422..c33b79dc0 100644
--- a/src/db/update/UpdateIO.hxx
+++ b/src/db/update/UpdateIO.hxx
@@ -21,6 +21,7 @@
#define MPD_UPDATE_IO_HXX
#include "check.h"
+#include "Compiler.h"
#include <sys/stat.h>
@@ -33,9 +34,11 @@ int
stat_directory_child(const Directory &parent, const char *name,
struct stat *st);
+gcc_pure
bool
directory_exists(const Directory &directory);
+gcc_pure
bool
directory_child_is_regular(const Directory &directory,
const char *name_utf8);
@@ -43,6 +46,7 @@ directory_child_is_regular(const Directory &directory,
/**
* Checks if the given permissions on the mapped file are given.
*/
+gcc_pure
bool
directory_child_access(const Directory &directory,
const char *name, int mode);