ncmpc  0.29
Data Fields
mpdclient Struct Reference

#include <mpdclient.h>

Data Fields

const char * host
 
unsigned port
 
unsigned timeout_ms
 
const char * password
 
struct mpdclient_playlist playlist
 
struct mpd_connection * connection
 
struct mpd_glib_source * source
 
struct mpd_status * status
 
const struct mpd_song * song
 
unsigned enter_idle_source_id
 
unsigned connection_id
 
int volume
 
enum mpd_idle events
 
bool idle
 
bool playing
 

Field Documentation

◆ host

const char* mpdclient::host

◆ port

unsigned mpdclient::port

◆ timeout_ms

unsigned mpdclient::timeout_ms

◆ password

const char* mpdclient::password

◆ playlist

struct mpdclient_playlist mpdclient::playlist

◆ connection

struct mpd_connection* mpdclient::connection

◆ source

struct mpd_glib_source* mpdclient::source

Tracks idle events. It is automatically called by mpdclient_get_connection().

◆ status

struct mpd_status* mpdclient::status

◆ song

const struct mpd_song* mpdclient::song

◆ enter_idle_source_id

unsigned mpdclient::enter_idle_source_id

The GLib source id which re-enters MPD idle mode before the next main loop interation.

◆ connection_id

unsigned mpdclient::connection_id

This attribute is incremented whenever the connection changes (i.e. on disconnection and (re-)connection).

◆ volume

int mpdclient::volume

◆ events

enum mpd_idle mpdclient::events

A bit mask of idle events occurred since the last update.

◆ idle

bool mpdclient::idle

This attribute is true when the connection is currently in "idle" mode, and the #mpd_glib_source waits for an event.

◆ playing

bool mpdclient::playing

Is MPD currently playing?


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