tag_handler Struct Reference

A callback table for receiving metadata of a song. More...

#include <tag_handler.h>

Data Fields

void(* duration )(unsigned seconds, void *ctx)
 Declare the duration of a song, in seconds.
void(* tag )(enum tag_type type, const char *value, void *ctx)
 A tag has been read.
void(* pair )(const char *key, const char *value, void *ctx)
 A name-value pair has been read.

Detailed Description

A callback table for receiving metadata of a song.

Definition at line 31 of file tag_handler.h.


Field Documentation

void(* tag_handler::duration)(unsigned seconds, void *ctx)

Declare the duration of a song, in seconds.

Do not call this when the duration could not be determined, because there is no magic value for "unknown duration".

void(* tag_handler::pair)(const char *key, const char *value, void *ctx)

A name-value pair has been read.

It is the codec specific representation of tags.

void(* tag_handler::tag)(enum tag_type type, const char *value, void *ctx)

A tag has been read.

Parameters:
the value of the tag; the pointer will become invalid after returning

The documentation for this struct was generated from the following file:

Generated on 17 Jul 2013 for MPD by  doxygen 1.6.1