#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include "common_definitions.h"#include "configuration.h"#include "log.h"#include "net_utils.h"#include "ssdp_message.h"
Go to the source code of this file.
Functions | |
| void | set_default_configuration (configuration_s *c) |
| void | usage (void) |
| int | parse_args (const int argc, char *const *argv, configuration_s *conf) |
The program/lib configuration
Definition in file configuration.c.
| int parse_args | ( | int | argc, |
| char *const * | argv, | ||
| configuration_s * | conf | ||
| ) |
Parses the given arguments and fills the given configuration accordingly.
| argc | The number of arguments to parse. |
| argv | The arguments to parse |
| conf | The configuration to fill. |
Definition at line 78 of file configuration.c.
| void set_default_configuration | ( | configuration_s * | conf | ) |
Set the default configuration to a configuration struct.
| conf | The configuration to set default values in. |
Definition at line 18 of file configuration.c.
| void usage | ( | void | ) |
Print the usage help text.
Definition at line 44 of file configuration.c.
1.8.8