Commit f8d114be authored by Max Kellermann's avatar Max Kellermann

db/UpdateIO: add "pure" attributes

parent 2c70251d
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define MPD_UPDATE_IO_HXX #define MPD_UPDATE_IO_HXX
#include "check.h" #include "check.h"
#include "Compiler.h"
#include <sys/stat.h> #include <sys/stat.h>
...@@ -33,9 +34,11 @@ int ...@@ -33,9 +34,11 @@ int
stat_directory_child(const Directory &parent, const char *name, stat_directory_child(const Directory &parent, const char *name,
struct stat *st); struct stat *st);
gcc_pure
bool bool
directory_exists(const Directory &directory); directory_exists(const Directory &directory);
gcc_pure
bool bool
directory_child_is_regular(const Directory &directory, directory_child_is_regular(const Directory &directory,
const char *name_utf8); const char *name_utf8);
...@@ -43,6 +46,7 @@ directory_child_is_regular(const Directory &directory, ...@@ -43,6 +46,7 @@ directory_child_is_regular(const Directory &directory,
/** /**
* Checks if the given permissions on the mapped file are given. * Checks if the given permissions on the mapped file are given.
*/ */
gcc_pure
bool bool
directory_child_access(const Directory &directory, directory_child_access(const Directory &directory,
const char *name, int mode); const char *name, int mode);
......
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