Directives for validating playlist entries
Synopsis:
#include <mm/mmplaylist.h>
typedef enum {
MMPLAYLIST_ENTRY_RAW_ENC = 0,
MMPLAYLIST_ENTRY_UTF8_ENC,
MMPLAYLIST_ENTRY_VALIDATE,
MMPLAYLIST_ENTRY_UTF8_VALIDATE
} mmplaylist_validation_mode_t;
Data:
- MMPLAYLIST_ENTRY_RAW_ENC
- Return raw playlist entries to the caller.
- MMPLAYLIST_ENTRY_UTF8_ENC
- Return playlist entries converted to UTF-8 to the caller.
- MMPLAYLIST_ENTRY_VALIDATE
- Use a helper function to validate the raw entry before returning it to the caller.
- The library will validate the entry as an absolute path, not just the entry read from
the playlist.
- MMPLAYLIST_ENTRY_UTF8_VALIDATE
- Use a helper function to validate a UTF-8 encoded entry before returning it to the caller.
- The library will pass only the encoded entry to the validation callback; it won't try to make the
path absolute.
Library:
libmmplaylist
Description:
The mmplaylist_validation_mode_t enumerated type defines the types of validation that
can be performed on playlist entries. This list might be extended at a future date.