Use RETRO_BEGIN_DECLS/RETRO_END_DECLS in more files
This commit is contained in:
parent
2b33c731d0
commit
ff8d00e12b
12
autosave.h
12
autosave.h
|
@ -17,12 +17,12 @@
|
||||||
#ifndef __RARCH_AUTOSAVE_H
|
#ifndef __RARCH_AUTOSAVE_H
|
||||||
#define __RARCH_AUTOSAVE_H
|
#define __RARCH_AUTOSAVE_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct autosave autosave_t;
|
typedef struct autosave autosave_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -43,8 +43,6 @@ void autosave_init(void);
|
||||||
|
|
||||||
void autosave_deinit(void);
|
void autosave_deinit(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
10
command.h
10
command.h
|
@ -23,10 +23,9 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct command command_t;
|
typedef struct command command_t;
|
||||||
|
|
||||||
|
@ -244,9 +243,6 @@ bool command_free(command_t *handle);
|
||||||
**/
|
**/
|
||||||
bool command_event(enum event_command action, void *data);
|
bool command_event(enum event_command action, void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "gfx/video_driver.h"
|
#include "gfx/video_driver.h"
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
|
@ -28,9 +29,7 @@
|
||||||
#define MAX_USERS 16
|
#define MAX_USERS 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* All config related settings go here. */
|
/* All config related settings go here. */
|
||||||
|
|
||||||
|
@ -571,8 +570,6 @@ void config_free(void);
|
||||||
|
|
||||||
settings_t *config_get_ptr(void);
|
settings_t *config_get_ptr(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,12 +23,11 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "frontend/frontend_driver.h"
|
#include "frontend/frontend_driver.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct ram_type ram_type_t;
|
typedef struct ram_type ram_type_t;
|
||||||
|
|
||||||
|
@ -68,8 +67,6 @@ void content_deinit(void);
|
||||||
* selected libretro core. */
|
* selected libretro core. */
|
||||||
bool content_init(void);
|
bool content_init(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
11
core.h
11
core.h
|
@ -18,15 +18,14 @@
|
||||||
#ifndef _LIBRETRO_CORE_IMPL_H
|
#ifndef _LIBRETRO_CORE_IMPL_H
|
||||||
#define _LIBRETRO_CORE_IMPL_H
|
#define _LIBRETRO_CORE_IMPL_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "core_type.h"
|
#include "core_type.h"
|
||||||
|
|
||||||
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
/* Polling is performed before
|
/* Polling is performed before
|
||||||
|
@ -183,8 +182,6 @@ bool core_uninit_libretro_callbacks(void);
|
||||||
|
|
||||||
void core_set_input_state(retro_ctx_input_state_info_t *info);
|
void core_set_input_state(retro_ctx_input_state_info_t *info);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,10 +21,9 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <lists/string_list.h>
|
#include <lists/string_list.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -120,8 +119,6 @@ bool core_info_find(core_info_ctx_find_t *info);
|
||||||
|
|
||||||
bool core_info_load(core_info_ctx_find_t *info);
|
bool core_info_load(core_info_ctx_find_t *info);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CORE_INFO_H_ */
|
#endif /* CORE_INFO_H_ */
|
||||||
|
|
|
@ -22,12 +22,11 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <file/archive_file.h>
|
#include <file/archive_file.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "libretro-db/libretrodb.h"
|
#include "libretro-db/libretrodb.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum database_status
|
enum database_status
|
||||||
{
|
{
|
||||||
|
@ -120,8 +119,6 @@ int database_info_build_query(
|
||||||
* memory after it is no longer required. */
|
* memory after it is no longer required. */
|
||||||
char *bin_to_hex_alloc(const uint8_t *data, size_t len);
|
char *bin_to_hex_alloc(const uint8_t *data, size_t len);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CORE_INFO_H_ */
|
#endif /* CORE_INFO_H_ */
|
||||||
|
|
9
driver.h
9
driver.h
|
@ -22,6 +22,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
#include <compat/posix_string.h>
|
#include <compat/posix_string.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -30,9 +31,7 @@
|
||||||
|
|
||||||
#include "input/input_defines.h"
|
#include "input/input_defines.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DRIVERS_CMD_ALL \
|
#define DRIVERS_CMD_ALL \
|
||||||
( DRIVER_AUDIO \
|
( DRIVER_AUDIO \
|
||||||
|
@ -171,8 +170,6 @@ typedef struct driver_ctx_info
|
||||||
|
|
||||||
bool driver_ctl(enum driver_ctl_state state, void *data);
|
bool driver_ctl(enum driver_ctl_state state, void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
6
patch.h
6
patch.h
|
@ -20,6 +20,10 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
/* BPS/UPS/IPS implementation from bSNES (nall::).
|
/* BPS/UPS/IPS implementation from bSNES (nall::).
|
||||||
* Modified for RetroArch. */
|
* Modified for RetroArch. */
|
||||||
|
|
||||||
|
@ -34,4 +38,6 @@
|
||||||
**/
|
**/
|
||||||
void patch_content(uint8_t **buf, ssize_t *size);
|
void patch_content(uint8_t **buf, ssize_t *size);
|
||||||
|
|
||||||
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,12 +17,11 @@
|
||||||
#define __RETROARCH_RUNLOOP_H
|
#define __RETROARCH_RUNLOOP_H
|
||||||
|
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum runloop_ctl_state
|
enum runloop_ctl_state
|
||||||
{
|
{
|
||||||
|
@ -317,8 +316,6 @@ char* runloop_msg_queue_pull(void);
|
||||||
|
|
||||||
bool runloop_ctl(enum runloop_ctl_state state, void *data);
|
bool runloop_ctl(enum runloop_ctl_state state, void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
9
system.h
9
system.h
|
@ -17,6 +17,7 @@
|
||||||
#define __RARCH_SYSTEM_H
|
#define __RARCH_SYSTEM_H
|
||||||
|
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
|
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
|
@ -25,9 +26,7 @@
|
||||||
#define MAX_USERS 16
|
#define MAX_USERS 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct rarch_system_info
|
typedef struct rarch_system_info
|
||||||
{
|
{
|
||||||
|
@ -58,8 +57,6 @@ typedef struct rarch_system_info
|
||||||
struct retro_memory_map mmaps;
|
struct retro_memory_map mmaps;
|
||||||
} rarch_system_info_t;
|
} rarch_system_info_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
10
verbosity.h
10
verbosity.h
|
@ -20,12 +20,11 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
#include <compat/posix_string.h>
|
#include <compat/posix_string.h>
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool verbosity_is_enabled(void);
|
bool verbosity_is_enabled(void);
|
||||||
|
|
||||||
|
@ -140,9 +139,6 @@ void RARCH_ERR_V(const char *tag, const char *fmt, va_list ap);
|
||||||
void RARCH_ERR(const char *fmt, ...);
|
void RARCH_ERR(const char *fmt, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
RETRO_END_DECLS
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue