From 4c14267f5b293541e1ca8e451cba03a14bd5c845 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 22 Mar 2016 02:56:06 +0100 Subject: [PATCH] Create core_type.h --- core_type.h | 27 +++++++++++++++++++++++++++ dynamic.c | 2 ++ dynamic.h | 9 +-------- libretro_version_1.c | 1 + retroarch.c | 1 + runloop.h | 1 - tasks/tasks_internal.h | 1 + 7 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 core_type.h diff --git a/core_type.h b/core_type.h new file mode 100644 index 0000000000..a14f009489 --- /dev/null +++ b/core_type.h @@ -0,0 +1,27 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2016 - 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 . + */ + +#ifndef __CORE_TYPE_H +#define __CORE_TYPE_H + +enum rarch_core_type +{ + CORE_TYPE_PLAIN = 0, + CORE_TYPE_DUMMY, + CORE_TYPE_FFMPEG, + CORE_TYPE_IMAGEVIEWER +}; + +#endif diff --git a/dynamic.c b/dynamic.c index 0506c69ef7..a265907cba 100644 --- a/dynamic.c +++ b/dynamic.c @@ -29,7 +29,9 @@ #include "config.h" #endif +#include "dynamic.h" #include "command_event.h" + #include "audio/audio_driver.h" #include "camera/camera_driver.h" #include "location/location_driver.h" diff --git a/dynamic.h b/dynamic.h index 570414be36..f072f78a7a 100644 --- a/dynamic.h +++ b/dynamic.h @@ -19,20 +19,13 @@ #include +#include "core_type.h" #include "libretro.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif -enum rarch_core_type -{ - CORE_TYPE_PLAIN = 0, - CORE_TYPE_DUMMY, - CORE_TYPE_FFMPEG, - CORE_TYPE_IMAGEVIEWER -}; - #ifdef __cplusplus extern "C" { #endif diff --git a/libretro_version_1.c b/libretro_version_1.c index 404402c3f5..20e3368065 100644 --- a/libretro_version_1.c +++ b/libretro_version_1.c @@ -25,6 +25,7 @@ #include #include +#include "dynamic.h" #include "libretro.h" #include "libretro_version_1.h" #include "general.h" diff --git a/retroarch.c b/retroarch.c index c9b1645d13..4562fcf84d 100644 --- a/retroarch.c +++ b/retroarch.c @@ -45,6 +45,7 @@ #include #include "content.h" +#include "core_type.h" #include "core_info.h" #include "msg_hash.h" #include "movie.h" diff --git a/runloop.h b/runloop.h index 90b6afcc86..261c31a1a2 100644 --- a/runloop.h +++ b/runloop.h @@ -19,7 +19,6 @@ #include #include "configuration.h" -#include "dynamic.h" #ifdef __cplusplus extern "C" { diff --git a/tasks/tasks_internal.h b/tasks/tasks_internal.h index 8414bebab2..25e881e6b9 100644 --- a/tasks/tasks_internal.h +++ b/tasks/tasks_internal.h @@ -21,6 +21,7 @@ #include +#include "../core_type.h" #include "../runloop.h" #ifdef __cplusplus