mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Some header cleanups
This commit is contained in:
parent
ea7cf9d9ca
commit
c46032c63a
@ -23,6 +23,8 @@
|
||||
#include <retro_miscellaneous.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "libretro.h"
|
||||
|
||||
#include "core_options.h"
|
||||
|
||||
struct core_option
|
||||
@ -77,9 +79,10 @@ void core_option_free(core_option_manager_t *opt)
|
||||
free(opt);
|
||||
}
|
||||
|
||||
void core_option_get(core_option_manager_t *opt, struct retro_variable *var)
|
||||
void core_option_get(core_option_manager_t *opt, void *data)
|
||||
{
|
||||
size_t i;
|
||||
struct retro_variable *var = (struct retro_variable*)data;
|
||||
|
||||
if (!opt)
|
||||
return;
|
||||
@ -166,11 +169,12 @@ static bool parse_variable(core_option_manager_t *opt, size_t idx,
|
||||
* Returns: handle to new core manager handle, otherwise NULL.
|
||||
**/
|
||||
core_option_manager_t *core_option_new(const char *conf_path,
|
||||
const struct retro_variable *vars)
|
||||
const void *data)
|
||||
{
|
||||
const struct retro_variable *var;
|
||||
size_t size = 0;
|
||||
core_option_manager_t *opt = (core_option_manager_t*)
|
||||
const struct retro_variable *vars = (const struct retro_variable*)data;
|
||||
size_t size = 0;
|
||||
core_option_manager_t *opt = (core_option_manager_t*)
|
||||
calloc(1, sizeof(*opt));
|
||||
|
||||
if (!opt)
|
||||
|
@ -22,8 +22,6 @@
|
||||
#include <boolean.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "libretro.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -40,7 +38,7 @@ typedef struct core_option_manager core_option_manager_t;
|
||||
* Returns: handle to new core manager handle, otherwise NULL.
|
||||
**/
|
||||
core_option_manager_t *core_option_new(const char *conf_path,
|
||||
const struct retro_variable *vars);
|
||||
const void *data);
|
||||
|
||||
/**
|
||||
* core_option_updated:
|
||||
@ -85,8 +83,7 @@ bool core_option_flush_game_specific(
|
||||
**/
|
||||
void core_option_free(core_option_manager_t *opt);
|
||||
|
||||
void core_option_get(core_option_manager_t *opt,
|
||||
struct retro_variable *var);
|
||||
void core_option_get(core_option_manager_t *opt, void *data);
|
||||
|
||||
/**
|
||||
* core_option_size:
|
||||
|
Loading…
x
Reference in New Issue
Block a user