1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#define MPD_HOST_ENV "MPD_HOST" #define MPD_PORT_ENV "MPD_PORT" typedef struct { char *host; int port; } options_t; void options_init(void); options_t *options_parse(int argc, char **argv); options_t *get_options(void);