directory: pass const pointers to inline functions

The inline functions directory_is_empty() and directory_get_path()
don't modify the object - pass constant object pointers to them.
This commit is contained in:
Max Kellermann 2008-10-13 09:56:57 +02:00
parent 313405edb6
commit 5ea2e198f9

View File

@ -57,13 +57,13 @@ void
directory_free(struct directory *directory);
static inline bool
directory_is_empty(struct directory *directory)
directory_is_empty(const struct directory *directory)
{
return directory->children.nr == 0 && directory->songs.nr == 0;
}
static inline const char *
directory_get_path(struct directory *directory)
directory_get_path(const struct directory *directory)
{
return directory->path;
}