libmpdclient 2.22
|
MPD client library. More...
#include "compiler.h"
#include <stdbool.h>
Go to the source code of this file.
Functions | |
struct mpd_neighbor * | mpd_neighbor_begin (const struct mpd_pair *pair) |
bool | mpd_neighbor_feed (struct mpd_neighbor *neighbor, const struct mpd_pair *pair) |
void | mpd_neighbor_free (struct mpd_neighbor *neighbor) |
const char * | mpd_neighbor_get_uri (const struct mpd_neighbor *neighbor) |
const char * | mpd_neighbor_get_display_name (const struct mpd_neighbor *neighbor) |
bool | mpd_send_list_neighbors (struct mpd_connection *connection) |
struct mpd_neighbor * | mpd_recv_neighbor (struct mpd_connection *connection) |
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file neighbor.h.
struct mpd_neighbor * mpd_neighbor_begin | ( | const struct mpd_pair * | pair | ) |
Begins parsing a new mpd_neighbor.
pair | the first pair in this mount point |
bool mpd_neighbor_feed | ( | struct mpd_neighbor * | neighbor, |
const struct mpd_pair * | pair | ||
) |
Parses the pair, adding its information to the specified mpd_neighbor object.
void mpd_neighbor_free | ( | struct mpd_neighbor * | neighbor | ) |
Frees a mpd_neighbor object returned from mpd_recv_neighbor() or mpd_neighbor_begin().
const char * mpd_neighbor_get_uri | ( | const struct mpd_neighbor * | neighbor | ) |
const char * mpd_neighbor_get_display_name | ( | const struct mpd_neighbor * | neighbor | ) |
bool mpd_send_list_neighbors | ( | struct mpd_connection * | connection | ) |
Sends the "listneighbors" command to MPD: queries a list of "neighbors" (e.g. accessible file servers on the local net). Call mpd_recv_neighbor() to read the response.
connection | a valid and connected mpd_connection. |
struct mpd_neighbor * mpd_recv_neighbor | ( | struct mpd_connection * | connection | ) |
Reads the next mpd_neighbor from the MPD response. Free the return value with mpd_neighbor_free().