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

Command line options handling. More...

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

Go to the source code of this file.

Enumerations

enum  handle_options_rc { OPTIONS_RC_INVALID = -1 , OPTIONS_RC_OK = 0 , OPTIONS_RC_EXIT = 1 }
 

Functions

enum handle_options_rc handle_options (struct t_config *config, int argc, char **argv)
 

Detailed Description

Command line options handling.

Enumeration Type Documentation

◆ handle_options_rc

Return codes for options handler

Function Documentation

◆ handle_options()

enum handle_options_rc handle_options ( struct t_config config,
int  argc,
char **  argv 
)

Handles the command line arguments

Parameters
configpointer to myMPD static configuration
argcfrom main function
argvfrom main function
Returns
OPTIONS_RC_INVALID on error OPTIONS_RC_EXIT if myMPD should exit OPTIONS_RC_OK if arguments are parsed successfully