Data Structures | |
struct | _MpdData |
Typedefs | |
typedef struct _MpdData | MpdData |
Enumerations | |
enum | MpdDataType { MPD_DATA_TYPE_NONE, MPD_DATA_TYPE_TAG, MPD_DATA_TYPE_DIRECTORY, MPD_DATA_TYPE_SONG, MPD_DATA_TYPE_PLAYLIST, MPD_DATA_TYPE_OUTPUT_DEV } |
Functions | |
int | mpd_data_is_last (MpdData const *data) |
void | mpd_data_free (MpdData *data) |
MpdData * | mpd_data_get_next (MpdData *data) |
MpdData * | mpd_data_get_first (MpdData const *data) |
MpdData * | mpd_data_delete_item (MpdData *data) |
enum MpdDataType |
enumeration to determine what value the MpdData structure hold. The MpdData structure can hold only one type of value, but a list of MpdData structs can hold structs with different type of values. It's required to check every MpdData Structure.
data | a MpdData |
You can iterate through a list like this and have it freed afterwards.
for(data = mpd_database_get_albums(mi);data != NULL; data = mpd_data_get_next(data)) { // do your thing }
int mpd_data_is_last | ( | MpdData const * | data | ) |