*: use references instead of pointers
This commit is contained in:
@@ -27,24 +27,24 @@
|
||||
struct Directory;
|
||||
|
||||
int
|
||||
stat_directory(const Directory *directory, struct stat *st);
|
||||
stat_directory(const Directory &directory, struct stat *st);
|
||||
|
||||
int
|
||||
stat_directory_child(const Directory *parent, const char *name,
|
||||
stat_directory_child(const Directory &parent, const char *name,
|
||||
struct stat *st);
|
||||
|
||||
bool
|
||||
directory_exists(const Directory *directory);
|
||||
directory_exists(const Directory &directory);
|
||||
|
||||
bool
|
||||
directory_child_is_regular(const Directory *directory,
|
||||
directory_child_is_regular(const Directory &directory,
|
||||
const char *name_utf8);
|
||||
|
||||
/**
|
||||
* Checks if the given permissions on the mapped file are given.
|
||||
*/
|
||||
bool
|
||||
directory_child_access(const Directory *directory,
|
||||
directory_child_access(const Directory &directory,
|
||||
const char *name, int mode);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user