From f8d114be42663006d162311c1ecaf4306e0b72e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Feb 2014 09:50:50 +0100 Subject: db/UpdateIO: add "pure" attributes --- src/db/update/UpdateIO.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 @@ -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); -- cgit v1.2.3