mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Use retro_common_api.h
This commit is contained in:
parent
7ce2ac082a
commit
5230aeb9d0
@ -22,13 +22,12 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "audio_dsp_filter.h"
|
#include "audio_dsp_filter.h"
|
||||||
#include "audio_resampler_driver.h"
|
#include "audio_resampler_driver.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define AUDIO_CHUNK_SIZE_BLOCKING 512
|
#define AUDIO_CHUNK_SIZE_BLOCKING 512
|
||||||
|
|
||||||
@ -218,8 +217,6 @@ extern audio_driver_t audio_ctr_dsp;
|
|||||||
extern audio_driver_t audio_rwebaudio;
|
extern audio_driver_t audio_rwebaudio;
|
||||||
extern audio_driver_t audio_null;
|
extern audio_driver_t audio_null;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#ifndef __AUDIO_DSP_FILTER_H__
|
#ifndef __AUDIO_DSP_FILTER_H__
|
||||||
#define __AUDIO_DSP_FILTER_H__
|
#define __AUDIO_DSP_FILTER_H__
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#include <retro_common_api.h>
|
||||||
extern "C" {
|
|
||||||
#endif
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
|
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
|
||||||
|
|
||||||
@ -41,9 +41,7 @@ struct rarch_dsp_data
|
|||||||
void rarch_dsp_filter_process(rarch_dsp_filter_t *dsp,
|
void rarch_dsp_filter_process(rarch_dsp_filter_t *dsp,
|
||||||
struct rarch_dsp_data *data);
|
struct rarch_dsp_data *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
#ifndef DSPFILTER_API_H__
|
#ifndef DSPFILTER_API_H__
|
||||||
#define DSPFILTER_API_H__
|
#define DSPFILTER_API_H__
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#include <retro_common_api.h>
|
||||||
extern "C" {
|
|
||||||
#endif
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
#define DSPFILTER_SIMD_SSE (1 << 0)
|
#define DSPFILTER_SIMD_SSE (1 << 0)
|
||||||
#define DSPFILTER_SIMD_SSE2 (1 << 1)
|
#define DSPFILTER_SIMD_SSE2 (1 << 1)
|
||||||
@ -177,8 +177,6 @@ struct dspfilter_implementation
|
|||||||
const char *short_ident;
|
const char *short_ident;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -127,19 +127,6 @@ static const rarch_resampler_t *find_resampler_driver(const char *ident)
|
|||||||
return resampler_drivers[0];
|
return resampler_drivers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef RARCH_INTERNAL
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
retro_get_cpu_features_t perf_get_cpu_features_cb;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static resampler_simd_mask_t resampler_get_cpu_features(void)
|
static resampler_simd_mask_t resampler_get_cpu_features(void)
|
||||||
{
|
{
|
||||||
return cpu_features_get();
|
return cpu_features_get();
|
||||||
|
@ -18,18 +18,17 @@
|
|||||||
#ifndef __AUDIO_RESAMPLER_DRIVER_H
|
#ifndef __AUDIO_RESAMPLER_DRIVER_H
|
||||||
#define __AUDIO_RESAMPLER_DRIVER_H
|
#define __AUDIO_RESAMPLER_DRIVER_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <retro_miscellaneous.h>
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
|
|
||||||
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
#define RESAMPLER_SIMD_SSE (1 << 0)
|
#define RESAMPLER_SIMD_SSE (1 << 0)
|
||||||
#define RESAMPLER_SIMD_SSE2 (1 << 1)
|
#define RESAMPLER_SIMD_SSE2 (1 << 1)
|
||||||
#define RESAMPLER_SIMD_VMX (1 << 2)
|
#define RESAMPLER_SIMD_VMX (1 << 2)
|
||||||
@ -201,10 +200,6 @@ bool rarch_resampler_realloc(void **re, const rarch_resampler_t **backend,
|
|||||||
(backend)->process(handle, data); \
|
(backend)->process(handle, data); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
RETRO_END_DECLS
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -20,12 +20,13 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#include "frontend_driver.h"
|
#include "frontend_driver.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* main_exit:
|
* main_exit:
|
||||||
@ -50,8 +51,6 @@ void main_exit(void *args);
|
|||||||
**/
|
**/
|
||||||
int rarch_main(int argc, char *argv[], void *data);
|
int rarch_main(int argc, char *argv[], void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,14 +20,13 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum frontend_powerstate
|
enum frontend_powerstate
|
||||||
{
|
{
|
||||||
@ -153,8 +152,6 @@ bool frontend_driver_get_core_extension(char *s, size_t len);
|
|||||||
|
|
||||||
bool frontend_driver_get_salamander_basename(char *s, size_t len);
|
bool frontend_driver_get_salamander_basename(char *s, size_t len);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,10 +20,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
|
|
||||||
|
|
||||||
enum font_driver_render_api
|
enum font_driver_render_api
|
||||||
{
|
{
|
||||||
@ -159,8 +158,6 @@ extern font_renderer_driver_t freetype_font_renderer;
|
|||||||
extern font_renderer_driver_t coretext_font_renderer;
|
extern font_renderer_driver_t coretext_font_renderer;
|
||||||
extern font_renderer_driver_t bitmap_font_renderer;
|
extern font_renderer_driver_t bitmap_font_renderer;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#include <retro_common_api.h>
|
||||||
extern "C" {
|
|
||||||
#endif
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
enum analog_dpad_mode
|
enum analog_dpad_mode
|
||||||
{
|
{
|
||||||
@ -75,9 +75,6 @@ enum analog_dpad_mode
|
|||||||
#define GET_HAT_DIR(x) (x & HAT_MASK)
|
#define GET_HAT_DIR(x) (x & HAT_MASK)
|
||||||
#define GET_HAT(x) (x & (~HAT_MASK))
|
#define GET_HAT(x) (x & (~HAT_MASK))
|
||||||
|
|
||||||
|
RETRO_END_DECLS
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <boolean.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#include <boolean.h>
|
||||||
extern "C" {
|
#include <retro_common_api.h>
|
||||||
#endif
|
|
||||||
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct input_remote input_remote_t;
|
typedef struct input_remote input_remote_t;
|
||||||
|
|
||||||
@ -45,9 +45,6 @@ void input_remote_state(
|
|||||||
unsigned idx,
|
unsigned idx,
|
||||||
unsigned id);
|
unsigned id);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -19,11 +19,10 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include <retro_common_api.h>
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MAX_COUNTERS
|
#ifndef MAX_COUNTERS
|
||||||
#define MAX_COUNTERS 64
|
#define MAX_COUNTERS 64
|
||||||
@ -63,9 +62,7 @@ void performance_counter_start(struct retro_perf_counter *perf);
|
|||||||
**/
|
**/
|
||||||
void performance_counter_stop(struct retro_perf_counter *perf);
|
void performance_counter_stop(struct retro_perf_counter *perf);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user