mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Add retroarch.h header
This commit is contained in:
parent
3249e5b8ff
commit
ec22bada36
1
driver.c
1
driver.c
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
#include "retroarch.h"
|
||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include "libretro_private.h"
|
#include "libretro_private.h"
|
||||||
#include "dynamic_dummy.h"
|
#include "dynamic_dummy.h"
|
||||||
|
#include "retroarch.h"
|
||||||
|
|
||||||
#ifdef NEED_DYNAMIC
|
#ifdef NEED_DYNAMIC
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "frontend.h"
|
#include "frontend.h"
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
#include "../settings.h"
|
#include "../settings.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "retroarch.h"
|
||||||
#include "dynamic.h"
|
#include "dynamic.h"
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
|
19
general.h
19
general.h
@ -837,17 +837,14 @@ extern struct global g_extern;
|
|||||||
extern struct defaults g_defaults;
|
extern struct defaults g_defaults;
|
||||||
|
|
||||||
/* Public functions. */
|
/* Public functions. */
|
||||||
|
|
||||||
void rarch_main_state_new(void);
|
|
||||||
void rarch_main_state_free(void);
|
|
||||||
|
|
||||||
int rarch_main(int argc, char *argv[]);
|
int rarch_main(int argc, char *argv[]);
|
||||||
|
|
||||||
bool rarch_replace_config(const char *path);
|
bool rarch_replace_config(const char *path);
|
||||||
|
|
||||||
void rarch_main_init_wrap(const struct rarch_main_wrap *args,
|
void rarch_main_init_wrap(const struct rarch_main_wrap *args,
|
||||||
int *argc, char **argv);
|
int *argc, char **argv);
|
||||||
|
|
||||||
int rarch_main_init(int argc, char *argv[]);
|
int rarch_main_init(int argc, char *argv[]);
|
||||||
void rarch_main_set_state(unsigned action);
|
|
||||||
bool rarch_main_command(unsigned action);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* rarch_main_iterate:
|
* rarch_main_iterate:
|
||||||
@ -861,16 +858,9 @@ bool rarch_main_command(unsigned action);
|
|||||||
* to wake up the loop.
|
* to wake up the loop.
|
||||||
*
|
*
|
||||||
* -1 if we forcibly quit out of the RetroArch iteration loop.
|
* -1 if we forcibly quit out of the RetroArch iteration loop.
|
||||||
*
|
|
||||||
**/
|
**/
|
||||||
int rarch_main_iterate(void);
|
int rarch_main_iterate(void);
|
||||||
|
|
||||||
void rarch_main_deinit(void);
|
|
||||||
void rarch_render_cached_frame(void);
|
|
||||||
void rarch_disk_control_set_eject(bool state, bool log);
|
|
||||||
void rarch_disk_control_set_index(unsigned index);
|
|
||||||
void rarch_disk_control_append_image(const char *path);
|
|
||||||
|
|
||||||
void rarch_playlist_load_content(content_playlist_t *playlist,
|
void rarch_playlist_load_content(content_playlist_t *playlist,
|
||||||
unsigned index);
|
unsigned index);
|
||||||
|
|
||||||
@ -881,9 +871,6 @@ int rarch_defer_core(core_info_list_t *data,
|
|||||||
void rarch_update_system_info(struct retro_system_info *info,
|
void rarch_update_system_info(struct retro_system_info *info,
|
||||||
bool *load_no_content);
|
bool *load_no_content);
|
||||||
|
|
||||||
void rarch_recording_dump_frame(const void *data, unsigned width,
|
|
||||||
unsigned height, size_t pitch);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <exynos/exynos_fimg2d.h>
|
#include <exynos/exynos_fimg2d.h>
|
||||||
|
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include "gfx_common.h"
|
#include "gfx_common.h"
|
||||||
#include "fonts/fonts.h"
|
#include "fonts/fonts.h"
|
||||||
|
|
||||||
|
1
gfx/gl.c
1
gfx/gl.c
@ -29,6 +29,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include <gfx/scaler/scaler.h>
|
#include <gfx/scaler/scaler.h>
|
||||||
#include "gfx_common.h"
|
#include "gfx_common.h"
|
||||||
#include "gfx_context.h"
|
#include "gfx_context.h"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include <gfx/scaler/scaler.h>
|
#include <gfx/scaler/scaler.h>
|
||||||
#include "gfx_common.h"
|
#include "gfx_common.h"
|
||||||
#include "gfx_context.h"
|
#include "gfx_context.h"
|
||||||
|
1
gfx/vg.c
1
gfx/vg.c
@ -23,6 +23,7 @@
|
|||||||
#include <gfx/math/matrix_3x3.h>
|
#include <gfx/math/matrix_3x3.h>
|
||||||
#include "../libretro.h"
|
#include "../libretro.h"
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
#include "../performance.h"
|
#include "../performance.h"
|
||||||
#include "fonts/fonts.h"
|
#include "fonts/fonts.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
#include "retroarch.h"
|
||||||
#include "performance.h"
|
#include "performance.h"
|
||||||
#include "input/keyboard_line.h"
|
#include "input/keyboard_line.h"
|
||||||
#include "audio/utils.h"
|
#include "audio/utils.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "../menu_input_line_cb.h"
|
#include "../menu_input_line_cb.h"
|
||||||
|
|
||||||
#include "../../input/input_autodetect.h"
|
#include "../../input/input_autodetect.h"
|
||||||
|
#include "../../retroarch.h"
|
||||||
#include "../../config.def.h"
|
#include "../../config.def.h"
|
||||||
|
|
||||||
static int menu_message_toggle(unsigned action)
|
static int menu_message_toggle(unsigned action)
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "../../input/keyboard_line.h"
|
#include "../../input/keyboard_line.h"
|
||||||
|
|
||||||
#include "../../settings_data.h"
|
#include "../../settings_data.h"
|
||||||
|
#include "../../retroarch.h"
|
||||||
|
|
||||||
#include "../disp/lakka.h"
|
#include "../disp/lakka.h"
|
||||||
#include "../menu_animation.h"
|
#include "../menu_animation.h"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include "../menu_common.h"
|
#include "../menu_common.h"
|
||||||
#include "../../general.h"
|
#include "../../general.h"
|
||||||
|
#include "../../retroarch.h"
|
||||||
#include <compat/posix_string.h>
|
#include <compat/posix_string.h>
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "menu_shader.h"
|
#include "menu_shader.h"
|
||||||
#include "../dynamic.h"
|
#include "../dynamic.h"
|
||||||
#include "../frontend/frontend.h"
|
#include "../frontend/frontend.h"
|
||||||
|
#include "../../retroarch.h"
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
static void draw_frame(void)
|
static void draw_frame(void)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "../file_ext.h"
|
#include "../file_ext.h"
|
||||||
#include "../config.def.h"
|
#include "../config.def.h"
|
||||||
#include "../cheats.h"
|
#include "../cheats.h"
|
||||||
|
#include "../retroarch.h"
|
||||||
|
|
||||||
#include <file/dir_list.h>
|
#include <file/dir_list.h>
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
#include <file/dir_list.h>
|
#include <file/dir_list.h>
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
#include "retroarch.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
#include "screenshot.h"
|
#include "screenshot.h"
|
||||||
|
49
retroarch.h
Normal file
49
retroarch.h
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/* RetroArch - A frontend for libretro.
|
||||||
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||||
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
||||||
|
*
|
||||||
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||||
|
* of the GNU General Public License as published by the Free Software Found-
|
||||||
|
* ation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||||
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE. See the GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __RETROARCH_H
|
||||||
|
#define __RETROARCH_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void rarch_main_state_new(void);
|
||||||
|
|
||||||
|
void rarch_main_state_free(void);
|
||||||
|
|
||||||
|
void rarch_main_set_state(unsigned action);
|
||||||
|
|
||||||
|
bool rarch_main_command(unsigned action);
|
||||||
|
|
||||||
|
void rarch_main_deinit(void);
|
||||||
|
|
||||||
|
void rarch_render_cached_frame(void);
|
||||||
|
|
||||||
|
void rarch_disk_control_set_eject(bool state, bool log);
|
||||||
|
|
||||||
|
void rarch_disk_control_set_index(unsigned index);
|
||||||
|
|
||||||
|
void rarch_disk_control_append_image(const char *path);
|
||||||
|
|
||||||
|
void rarch_recording_dump_frame(const void *data, unsigned width,
|
||||||
|
unsigned height, size_t pitch);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
@ -21,6 +21,7 @@
|
|||||||
#include "performance.h"
|
#include "performance.h"
|
||||||
#include "retroarch_logger.h"
|
#include "retroarch_logger.h"
|
||||||
#include "intl/intl.h"
|
#include "intl/intl.h"
|
||||||
|
#include "retroarch.h"
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
#include "menu/menu_common.h"
|
#include "menu/menu_common.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "retroarch_logger.h"
|
#include "retroarch_logger.h"
|
||||||
#include "file_ext.h"
|
#include "file_ext.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "retroarch.h"
|
||||||
|
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(__CELLOS_LV2__)
|
||||||
#include <sdk_version.h>
|
#include <sdk_version.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user