#include <stdbool.h>
Go to the source code of this file.
Define Documentation
Function Documentation
Determines the file system path of a directory's child (may be a sub directory or a song).
- Parameters:
-
| directory | the parent directory object |
| name | the child's name in UTF-8 |
- Returns:
- the path in file system encoding, or NULL if mapping failed
Determines the file system path of a directory object.
- Parameters:
-
| directory | the directory object |
- Returns:
- the path in file system encoding, or NULL if mapping failed
Maps a file system path (relative to the music directory or absolute) to a relative path in UTF-8 encoding.
- Parameters:
-
| path_fs | a path in file system encoding |
- Returns:
- the relative path in UTF-8, or NULL if mapping failed
Determines the file system path of a song.
This must not be a remote song.
- Parameters:
-
- Returns:
- the path in file system encoding, or NULL if mapping failed
Returns the playlist directory.
Maps a playlist name (without the ".m3u" suffix) to a file system path.
The return value is allocated on the heap and must be freed with g_free().
- Returns:
- the path in file system encoding, or NULL if mapping failed
If the specified absolute path points inside the music directory, this function converts it to a relative path.
If not, it returns the unmodified string pointer.
Determines the absolute file system path of a relative URI.
This is basically done by converting the URI to the file system charset and prepending the music directory.
Returns true if a music directory was configured.
| void mapper_init |
( |
const char * |
_music_dir, |
|
|
const char * |
_playlist_dir |
|
) |
| |