@ -3,10 +3,11 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct option {
|
||||
const char *name;
|
||||
char *value;
|
||||
bool required;
|
||||
typedef struct {
|
||||
#define OPT_NAME_MAX 20
|
||||
char name[20]; // option name
|
||||
char *value; // option value
|
||||
bool required; // is the option required (does it need to have a value)
|
||||
} option_t;
|
||||
|
||||
typedef struct config {
|
||||
@ -14,5 +15,5 @@ typedef struct config {
|
||||
int32_t count;
|
||||
} config_t;
|
||||
|
||||
int32_t config_load(config_t *conf);
|
||||
char *config_get(config_t *conf, const char *name);
|
||||
bool config_load(config_t *conf);
|
||||
char *config_get(config_t *conf, const char *name);
|
||||
|
Reference in New Issue
Block a user