libmpdclient 2.22
Functions
password.h File Reference

MPD client library. More...

#include <stdbool.h>
Include dependency graph for password.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mpd_send_password (struct mpd_connection *connection, const char *password)
 
bool mpd_run_password (struct mpd_connection *connection, const char *password)
 

Detailed Description

MPD client library.

Password authentication.

Do not include this header directly. Use mpd/client.h instead.

Definition in file password.h.

Function Documentation

◆ mpd_send_password()

bool mpd_send_password ( struct mpd_connection connection,
const char *  password 
)

Sends the password to MPD, to gain more privileges.

◆ mpd_run_password()

bool mpd_run_password ( struct mpd_connection connection,
const char *  password 
)

Sends the password to MPD and receives its response.

Returns
true on success, false on failure