ui_window - add destroy function callback

This commit is contained in:
twinaphex 2016-06-04 04:37:37 +02:00
parent bc7e7a26f0
commit be08e07a66
3 changed files with 7 additions and 0 deletions

View File

@ -21,12 +21,17 @@
#include "../../ui_companion_driver.h"
void ui_window_null_destroy(void *data)
{
}
static void ui_window_null_set_visible(void *data,
bool set_visible)
{
}
const ui_window_t ui_window_null = {
ui_window_null_destroy,
ui_window_null_set_visible,
"null",
};

View File

@ -58,6 +58,7 @@ void ui_window_win32_set_visible(void *data,
}
const ui_window_t ui_window_win32 = {
ui_window_win32_destroy,
ui_window_win32_set_visible,
"win32",
};

View File

@ -33,6 +33,7 @@ RETRO_BEGIN_DECLS
typedef struct ui_window
{
void (*destroy)(void *data);
void (*set_visible)(void *data, bool visible);
const char *ident;
} ui_window_t;