Directives for validating playlist entries
#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;
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.
Use a helper function to validate a UTF-8 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.
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.