--- hatari/src/includes/cfgopts.h 2019/04/01 07:10:53 1.1.1.1 +++ hatari/src/includes/cfgopts.h 2019/04/09 08:56:51 1.1.1.5 @@ -1,32 +1,33 @@ -/* - * CFGOPTS.H - */ - -#ifndef HATARI_CFGOPTS_H -#define HATARI_CFGOPTS_H - -typedef enum -{ - Error_Tag, - Bool_Tag, - Char_Tag, - Short_Tag, - Int_Tag, - Long_Tag, - Float_Tag, - Double_Tag, - String_Tag, -} TAG_TYPE; - - -struct Config_Tag -{ - char *code; /* Option switch */ - TAG_TYPE type; /* Type of option */ - void *buf; /* Storage location */ -}; - -int input_config(const char *, struct Config_Tag *, char *); -int update_config(const char *, struct Config_Tag *, char *); - -#endif +/* + * Hatari - cfgopts.h + */ + +#ifndef HATARI_CFGOPTS_H +#define HATARI_CFGOPTS_H + +typedef enum +{ + Error_Tag, + Bool_Tag, + Char_Tag, + Short_Tag, + Int_Tag, + Long_Tag, + Float_Tag, + Double_Tag, + String_Tag, + Key_Tag +} TAG_TYPE; + + +struct Config_Tag +{ + const char *code; /* Option switch */ + TAG_TYPE type; /* Type of option */ + void *buf; /* Storage location */ +}; + +int input_config(const char *, const struct Config_Tag *, const char *); +int update_config(const char *, const struct Config_Tag *, const char *); + +#endif