ncmpc  0.31
Functions
callbacks.hxx File Reference
#include <mpd/client.h>

Go to the source code of this file.

Functions

void mpdclient_connected_callback ()
 
void mpdclient_failed_callback ()
 
void mpdclient_lost_callback ()
 
void mpdclient_error_callback (const char *message)
 
bool mpdclient_auth_callback (struct mpdclient *c)
 
void mpdclient_idle_callback (unsigned events)
 

Function Documentation

◆ mpdclient_connected_callback()

void mpdclient_connected_callback ( )

A connection to MPD has been established.

◆ mpdclient_failed_callback()

void mpdclient_failed_callback ( )

An attempt to connect to MPD has failed. mpdclient_error_callback() has been called already.

◆ mpdclient_lost_callback()

void mpdclient_lost_callback ( )

The connection to MPD was lost. If this was due to an error, then mpdclient_error_callback() has already been called.

◆ mpdclient_error_callback()

void mpdclient_error_callback ( const char *  message)

To be implemented by the application: mpdclient.c calls this to display an error message.

Parameters
messagea human-readable error message in the locale charset

◆ mpdclient_auth_callback()

bool mpdclient_auth_callback ( struct mpdclient c)

◆ mpdclient_idle_callback()

void mpdclient_idle_callback ( unsigned  events)