#include "check.h"
#include "dirvec.h"
#include "songvec.h"
#include "playlist_vector.h"
#include <stdbool.h>
#include <sys/types.h>
Go to the source code of this file.
|
| static bool | isRootDirectory (const char *name) |
| |
| struct directory * | directory_new (const char *dirname, struct directory *parent) |
| |
| void | directory_free (struct directory *directory) |
| |
| static bool | directory_is_empty (const struct directory *directory) |
| |
| static const char * | directory_get_path (const struct directory *directory) |
| |
| static bool | directory_is_root (const struct directory *directory) |
| | Is this the root directory of the music database?
|
| |
| const char * | directory_get_name (const struct directory *directory) |
| | Returns the base name of the directory.
|
| |
| static struct directory * | directory_get_child (const struct directory *directory, const char *name) |
| |
| static struct directory * | directory_new_child (struct directory *directory, const char *name) |
| |
| void | directory_prune_empty (struct directory *directory) |
| |
| struct directory * | directory_lookup_directory (struct directory *directory, const char *uri) |
| | Looks up a directory by its relative URI.
|
| |
| struct song * | directory_lookup_song (struct directory *directory, const char *uri) |
| | Looks up a song by its relative URI.
|
| |
| void | directory_sort (struct directory *directory) |
| |
| int | directory_walk (struct directory *directory, int(*forEachSong)(struct song *, void *), int(*forEachDir)(struct directory *, void *), void *data) |
| |
| #define DEVICE_CONTAINER (dev_t)(-2) |
| #define DEVICE_INARCHIVE (dev_t)(-1) |
| #define DIRECTORY_DIR "directory: " |
| void directory_free |
( |
struct directory * |
directory | ) |
|
| static struct directory* directory_get_child |
( |
const struct directory * |
directory, |
|
|
const char * |
name |
|
) |
| |
|
staticread |
| const char* directory_get_name |
( |
const struct directory * |
directory | ) |
|
Returns the base name of the directory.
| static const char* directory_get_path |
( |
const struct directory * |
directory | ) |
|
|
inlinestatic |
| static bool directory_is_empty |
( |
const struct directory * |
directory | ) |
|
|
inlinestatic |
| static bool directory_is_root |
( |
const struct directory * |
directory | ) |
|
|
inlinestatic |
Is this the root directory of the music database?
Definition at line 79 of file directory.h.
| struct directory* directory_lookup_directory |
( |
struct directory * |
directory, |
|
|
const char * |
uri |
|
) |
| |
|
read |
Looks up a directory by its relative URI.
- Parameters
-
| directory | the parent (or grandparent, ...) directory |
| uri | the relative URI |
- Returns
- the directory, or NULL if none was found
| struct song* directory_lookup_song |
( |
struct directory * |
directory, |
|
|
const char * |
uri |
|
) |
| |
|
read |
Looks up a song by its relative URI.
- Parameters
-
| directory | the parent (or grandparent, ...) directory |
| uri | the relative URI |
- Returns
- the song, or NULL if none was found
| static struct directory* directory_new_child |
( |
struct directory * |
directory, |
|
|
const char * |
name |
|
) |
| |
|
staticread |
| void directory_prune_empty |
( |
struct directory * |
directory | ) |
|
| void directory_sort |
( |
struct directory * |
directory | ) |
|
| int directory_walk |
( |
struct directory * |
directory, |
|
|
int(*)(struct song *, void *) |
forEachSong, |
|
|
int(*)(struct directory *, void *) |
forEachDir, |
|
|
void * |
data |
|
) |
| |
| static bool isRootDirectory |
( |
const char * |
name | ) |
|
|
inlinestatic |