Add (stub) ui_cocoa_application.m

This commit is contained in:
Twinaphex 2016-06-07 16:51:25 +02:00
parent f17b4fba05
commit 3b16eb1e91
5 changed files with 35 additions and 1 deletions

View File

@ -1087,6 +1087,7 @@ ifeq ($(HAVE_COCOA),1)
input/drivers_keyboard/keyboard_event_apple.o \
ui/drivers/ui_cocoa.o \
ui/drivers/cocoa/ui_cocoa_window.o \
ui/drivers/cocoa/ui_cocoa_application.o \
ui/drivers/cocoa/cocoa_common.o \
gfx/drivers_context/cocoa_gl_ctx.o
endif

View File

@ -42,6 +42,7 @@
#elif defined(HAVE_COCOA)
#include "../ui/drivers/ui_cocoa.m"
#include "../ui/drivers/cocoa/ui_cocoa_window.m"
#include "../ui/drivers/cocoa/ui_cocoa_application.m"
#endif
#endif

View File

@ -0,0 +1,31 @@
/* 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 <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <boolean.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "../../ui_companion_driver.h"
static void ui_application_cocoa_process_events(void *data)
{
}
const ui_application_t ui_application_cocoa = {
ui_application_cocoa_process_events,
"cocoa"
};

View File

@ -597,6 +597,6 @@ const ui_companion_driver_t ui_companion_cocoa = {
NULL,
NULL,
&ui_window_cocoa,
&ui_application_null,
&ui_application_cocoa,
"cocoa",
};

View File

@ -70,6 +70,7 @@ extern const ui_window_t ui_window_cocoa;
extern const ui_window_t ui_window_win32;
extern const ui_application_t ui_application_null;
extern const ui_application_t ui_application_cocoa;
extern const ui_companion_driver_t ui_companion_null;
extern const ui_companion_driver_t ui_companion_cocoa;