libmpdclient 2.22
|
MPD client library. More...
#include "compiler.h"
#include <stdbool.h>
#include <time.h>
Go to the source code of this file.
Functions | |
struct mpd_directory * | mpd_directory_dup (const struct mpd_directory *directory) |
void | mpd_directory_free (struct mpd_directory *directory) |
const char * | mpd_directory_get_path (const struct mpd_directory *directory) |
time_t | mpd_directory_get_last_modified (const struct mpd_directory *directory) |
struct mpd_directory * | mpd_directory_begin (const struct mpd_pair *pair) |
bool | mpd_directory_feed (struct mpd_directory *directory, const struct mpd_pair *pair) |
struct mpd_directory * | mpd_recv_directory (struct mpd_connection *connection) |
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file directory.h.
struct mpd_directory * mpd_directory_dup | ( | const struct mpd_directory * | directory | ) |
Duplicates a mpd_directory object.
void mpd_directory_free | ( | struct mpd_directory * | directory | ) |
Free memory allocated by the mpd_directory object.
const char * mpd_directory_get_path | ( | const struct mpd_directory * | directory | ) |
Returns the path of this directory, relative to the MPD music directory. It does not begin with a slash.
time_t mpd_directory_get_last_modified | ( | const struct mpd_directory * | directory | ) |
struct mpd_directory * mpd_directory_begin | ( | const struct mpd_pair * | pair | ) |
Begins parsing a new directory.
pair | the first pair in this directory (name must be "directory") |
bool mpd_directory_feed | ( | struct mpd_directory * | directory, |
const struct mpd_pair * | pair | ||
) |
Parses the pair, adding its information to the specified mpd_directory object.
struct mpd_directory * mpd_recv_directory | ( | struct mpd_connection * | connection | ) |
Receives the next directory from the MPD server.