20 #ifndef MPD_TAG_HANDLER_HXX
21 #define MPD_TAG_HANDLER_HXX
52 void (*
pair)(
const char *key,
const char *value,
void *ctx);
65 TagType type,
const char *value)
68 assert(value !=
nullptr);
70 if (handler.
tag !=
nullptr)
71 handler.
tag(type, value, ctx);
76 const char *
name,
const char *value)
78 assert(name !=
nullptr);
79 assert(value !=
nullptr);
81 if (handler.
pair !=
nullptr)
82 handler.
pair(name, value, ctx);
void(* tag)(TagType type, const char *value, void *ctx)
A tag has been read.
A time stamp within a song.
A callback table for receiving metadata of a song.
const TagHandler add_tag_handler
This TagHandler implementation adds tag values to a TagBuilder object (casted from the context pointe...
static void tag_handler_invoke_pair(const TagHandler &handler, void *ctx, const char *name, const char *value)
const TagHandler full_tag_handler
This TagHandler implementation adds tag values to a TagBuilder object (casted from the context pointe...
static void tag_handler_invoke_duration(const TagHandler &handler, void *ctx, SongTime duration)
void(* duration)(SongTime duration, void *ctx)
Declare the duration of a song.
TagType
Codes for the type of a tag item.
void(* pair)(const char *key, const char *value, void *ctx)
A name-value pair has been read.
static void tag_handler_invoke_tag(const TagHandler &handler, void *ctx, TagType type, const char *value)
const Partition const char * name