libmpd
11.8.17
|
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) |
This is a fast linked list implementation where data returned from mpd is stored in.
# A fast linked list that is used to pass data from libmpd to the client.
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 |
Returns the next MpdData in the list. If it's the last item in the list, it will free the list.
You can iterate through a list like this and have it freed afterwards.