myMPD
Internal API documentation
Loading...
Searching...
No Matches
config.h File Reference

Configuration handling. More...

#include "src/lib/config_def.h"
#include <stdbool.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void mympd_config_defaults_initial (struct t_config *config)
 
bool mympd_config_read (struct t_config *config)
 
void mympd_config_free (struct t_config *config)
 
void mympd_config_dump_default (void)
 

Detailed Description

Configuration handling.

Function Documentation

◆ mympd_config_defaults_initial()

void mympd_config_defaults_initial ( struct t_config config)

Sets the initial default values for config struct This function is used before reading command line arguments

Parameters
configpointer to config struct

◆ mympd_config_dump_default()

void mympd_config_dump_default ( void  )

Dumps the default myMPD configuration

◆ mympd_config_free()

void mympd_config_free ( struct t_config config)

Frees the config struct

Parameters
configpointer to config struct

◆ mympd_config_read()

bool mympd_config_read ( struct t_config config)

Reads the myMPD configuration from environment or files This function is used after reading command line arguments.

Parameters
configpointer to config struct
Returns
true on success, else false