(Cocoa) Add stub ui_cocoa_window.m

This commit is contained in:
Twinaphex 2016-06-04 07:56:28 +02:00
parent 810447e3ec
commit 98014f7b66
5 changed files with 51 additions and 1 deletions

View File

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

View File

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

View File

@ -0,0 +1,47 @@
/* 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"
void ui_window_cocoa_destroy(void *data)
{
}
void ui_window_cocoa_set_focused(void *data)
{
}
static void ui_window_cocoa_set_visible(void *data,
bool set_visible)
{
}
static void ui_window_cocoa_set_title(void *data, char *buf)
{
}
const ui_window_t ui_window_cocoa = {
ui_window_cocoa_destroy,
ui_window_cocoa_set_focused,
ui_window_cocoa_set_visible,
ui_window_cocoa_set_title,
"cocoa"
};

View File

@ -595,6 +595,6 @@ const ui_companion_driver_t ui_companion_cocoa = {
NULL,
NULL,
NULL,
&ui_window_null,
&ui_window_cocoa,
"cocoa",
};

View File

@ -57,6 +57,7 @@ typedef struct ui_companion_driver
} ui_companion_driver_t;
extern const ui_window_t ui_window_null;
extern const ui_window_t ui_window_cocoa;
extern const ui_window_t ui_window_win32;
extern const ui_companion_driver_t ui_companion_null;