myMPD
Internal API documentation
Loading...
Searching...
No Matches
autoconf.c File Reference

MPD connection autoconfiguration. More...

#include "compile_time.h"
#include "src/mympd_client/autoconf.h"
#include "src/lib/env.h"
#include "src/lib/filehandler.h"
#include "src/lib/log.h"
#include "src/lib/sds_extras.h"
#include "src/lib/validate.h"
#include <inttypes.h>
#include <string.h>
Include dependency graph for autoconf.c:

Functions

static bool test_mpd_conn (const char *socket_path)
 
void mympd_client_autoconf (struct t_mympd_state *mympd_state)
 

Detailed Description

MPD connection autoconfiguration.

Function Documentation

◆ mympd_client_autoconf()

void mympd_client_autoconf ( struct t_mympd_state mympd_state)

Public functions Tries to autodetect the mpd connection configuration https://mpd.readthedocs.io/en/latest/client.html#environment-variables

Parameters
mympd_statepointer to mympd_state structure

◆ test_mpd_conn()

static bool test_mpd_conn ( const char *  socket_path)
static

Private definitions

Public functions Tries a connection to mpd

Parameters
socket_pathmpd socket
Returns
true on success, else false