|
myMPD
Internal API documentation
|
Command line options handling. More...
#include "compile_time.h"#include "src/lib/handle_options.h"#include "src/lib/config.h"#include "src/lib/config_def.h"#include "src/lib/pin.h"#include "src/lib/sds_extras.h"#include "src/lib/utility.h"#include <getopt.h>#include <openssl/opensslv.h>
Functions | |
| static void | print_usage (struct t_config *config, const char *cmd) |
| static void | print_version (void) |
| enum handle_options_rc | handle_options (struct t_config *config, int argc, char **argv) |
Variables | |
| static struct option | long_options [] |
Command line options handling.
| enum handle_options_rc handle_options | ( | struct t_config * | config, |
| int | argc, | ||
| char ** | argv | ||
| ) |
Handles the command line arguments
| config | pointer to myMPD static configuration |
| argc | from main function |
| argv | from main function |
|
static |
Prints the command line usage information
| config | pointer to config struct |
| cmd | argv[0] from main function |
|
static |
Prints the command line usage information
|
static |
Options definitions