ncmpc  0.29
Functions
callbacks.h File Reference
#include <mpd/client.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

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

Function Documentation

◆ mpdclient_connected_callback()

void mpdclient_connected_callback ( void  )

A connection to MPD has been established.

◆ mpdclient_failed_callback()

void mpdclient_failed_callback ( void  )

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

◆ mpdclient_lost_callback()

void mpdclient_lost_callback ( void  )

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 ( enum mpd_idle  events)