From 1b057a0c714313ce09fcaf6cf94ccaa0cc85ed8c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 25 Jul 2016 11:23:40 +0200 Subject: [PATCH] Move structs to configuration.h --- configuration.c | 49 ------------------------------------------------- configuration.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/configuration.c b/configuration.c index a5f5dfd4a0..815dfa9149 100644 --- a/configuration.c +++ b/configuration.c @@ -46,55 +46,6 @@ #include "config.h" #endif -struct config_bool_setting -{ - const char *ident; - bool value; -}; - -struct config_bool_setting_ptr -{ - const char *ident; - bool *ptr; -}; - -struct config_int_setting_ptr -{ - const char *ident; - unsigned *ptr; -}; - -struct config_int_setting -{ - const char *ident; - unsigned value; -}; - -struct config_float_setting_ptr -{ - const char *ident; - float *ptr; -}; - -struct config_float_setting -{ - const char *ident; - float value; -}; - -struct config_string_setting -{ - const char *ident; - const char *value; -}; - -struct config_path_setting -{ - const char *ident; - bool defaults; - const char *value; -}; - struct defaults g_defaults; static settings_t *configuration_settings = NULL; diff --git a/configuration.h b/configuration.h index 68087a66fd..bec344606e 100644 --- a/configuration.h +++ b/configuration.h @@ -33,6 +33,55 @@ RETRO_BEGIN_DECLS /* All config related settings go here. */ +struct config_bool_setting +{ + const char *ident; + bool value; +}; + +struct config_bool_setting_ptr +{ + const char *ident; + bool *ptr; +}; + +struct config_int_setting_ptr +{ + const char *ident; + unsigned *ptr; +}; + +struct config_int_setting +{ + const char *ident; + unsigned value; +}; + +struct config_float_setting_ptr +{ + const char *ident; + float *ptr; +}; + +struct config_float_setting +{ + const char *ident; + float value; +}; + +struct config_string_setting +{ + const char *ident; + const char *value; +}; + +struct config_path_setting +{ + const char *ident; + bool defaults; + const char *value; +}; + typedef struct settings { video_viewport_t video_viewport_custom;