(settings_data.c) Cleanups

This commit is contained in:
twinaphex 2014-08-27 01:30:18 +02:00
parent 2016e1965e
commit cd78e7797f
2 changed files with 6 additions and 12 deletions

View File

@ -20,7 +20,10 @@
#include "input/input_common.h"
#include "config.def.h"
// Input
#ifdef APPLE
#include "input/apple_keycode.h"
#endif
static void get_input_config_prefix(char *buf, size_t sizeof_buf,
const rarch_setting_t *setting)
{

View File

@ -23,9 +23,9 @@
extern "C" {
#endif
#define SETTINGS_DATA_LIST_SIZE 512
typedef void (*change_handler_t)(const void *data);
#define BINDFOR(s) (*(&s)->value.keybind)
#define BINDFOR(s) (*(&(s))->value.keybind)
enum setting_type
{
@ -54,8 +54,6 @@ enum setting_flags
SD_FLAG_HAS_RANGE = 16
};
typedef void (*change_handler_t)(const void *data);
typedef struct rarch_setting_t
{
enum setting_type type;
@ -105,8 +103,6 @@ typedef struct rarch_setting_t
bool enforce_maxrange;
} rarch_setting_t;
void setting_data_reset_setting(const rarch_setting_t* setting);
void setting_data_reset(const rarch_setting_t* settings);
@ -130,14 +126,9 @@ rarch_setting_t setting_data_bind_setting(const char* name, const char* descript
void setting_data_get_description(const void *data, char *msg, size_t msg_sizeof);
// These functions operate only on RetroArch's main settings list
rarch_setting_t* setting_data_get_list(void);
#ifdef APPLE
#include "input/apple_keycode.h"
#endif
#ifdef __cplusplus
}
#endif