MPD: Mapper.hxx File Reference

MPD 0.20.15

Macros | Functions
Mapper.hxx File Reference
`#include <string>`
`#include "Compiler.h"`
Include dependency graph for Mapper.hxx:

Go to the source code of this file.

## Macros
#define | PLAYLIST_FILE_SUFFIX ".m3u"

## Functions
void | mapper_init (AllocatedPath &&playlist_dir)
void | mapper_finish () noexcept
gcc_const const AllocatedPath & | map_spl_path () noexcept
| Returns the playlist directory. More...
gcc_pure AllocatedPath | map_spl_utf8_to_fs (const char *name) noexcept
| Maps a playlist name (without the ".m3u" suffix) to a file system path. More...

## Macro Definition Documentation

## ◆ PLAYLIST_FILE_SUFFIX

#define PLAYLIST_FILE_SUFFIX ".m3u"

Definition at line 31 of file Mapper.hxx.

## Function Documentation

## ◆ map_spl_path()

gcc_const const AllocatedPath& map_spl_path | ( |  | ) |
| noexcept

Returns the playlist directory.

## ◆ map_spl_utf8_to_fs()

gcc_pure AllocatedPath map_spl_utf8_to_fs | ( | const char * | name | ) |
| noexcept

Maps a playlist name (without the ".m3u" suffix) to a file system path.

Returns
  the path in file system encoding, or nullptr if mapping failed

## ◆ mapper_finish()

void mapper_finish | ( |  | ) |
| noexcept

## ◆ mapper_init()

void mapper_init | ( | AllocatedPath && | playlist_dir | ) |