2015-04-11 23:31:03 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 12:40:32 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-04-11 23:31:03 +00:00
|
|
|
*
|
|
|
|
* 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>
|
2015-04-12 00:09:14 +00:00
|
|
|
#include <stdlib.h>
|
2015-04-11 23:31:03 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <file/file_path.h>
|
|
|
|
#include "../ui_companion_driver.h"
|
|
|
|
|
2015-04-12 00:09:14 +00:00
|
|
|
typedef struct ui_companion_null
|
|
|
|
{
|
|
|
|
void *empty;
|
|
|
|
} ui_companion_null_t;
|
|
|
|
|
2015-04-11 23:31:03 +00:00
|
|
|
static void ui_companion_null_deinit(void *data)
|
|
|
|
{
|
2015-04-12 00:09:14 +00:00
|
|
|
ui_companion_null_t *handle = (ui_companion_null_t*)data;
|
|
|
|
|
|
|
|
if (handle)
|
|
|
|
free(handle);
|
2015-04-11 23:31:03 +00:00
|
|
|
}
|
|
|
|
|
2015-04-12 00:09:14 +00:00
|
|
|
static void *ui_companion_null_init(void)
|
2015-04-11 23:31:03 +00:00
|
|
|
{
|
2015-04-12 00:09:14 +00:00
|
|
|
ui_companion_null_t *handle = (ui_companion_null_t*)calloc(1, sizeof(*handle));
|
|
|
|
|
|
|
|
if (!handle)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
return handle;
|
2015-04-11 23:31:03 +00:00
|
|
|
}
|
|
|
|
|
2015-04-12 15:10:51 +00:00
|
|
|
static int ui_companion_null_iterate(void *data, unsigned action)
|
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
(void)action;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void ui_companion_null_notify_content_loaded(void *data)
|
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
}
|
|
|
|
|
2015-04-13 00:30:52 +00:00
|
|
|
static void ui_companion_null_toggle(void *data)
|
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
}
|
|
|
|
|
2015-04-20 18:00:39 +00:00
|
|
|
static void ui_companion_null_event_command(void *data, enum event_command cmd)
|
2015-04-13 11:46:48 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
(void)cmd;
|
|
|
|
}
|
|
|
|
|
2015-05-11 07:56:13 +00:00
|
|
|
static void ui_companion_null_notify_list_pushed(void *data,
|
|
|
|
file_list_t *list, file_list_t *menu_list)
|
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
(void)list;
|
|
|
|
(void)menu_list;
|
|
|
|
}
|
|
|
|
|
2015-04-11 23:31:03 +00:00
|
|
|
const ui_companion_driver_t ui_companion_null = {
|
|
|
|
ui_companion_null_init,
|
|
|
|
ui_companion_null_deinit,
|
2015-04-12 15:10:51 +00:00
|
|
|
ui_companion_null_iterate,
|
2015-04-13 00:30:52 +00:00
|
|
|
ui_companion_null_toggle,
|
2015-04-13 11:46:48 +00:00
|
|
|
ui_companion_null_event_command,
|
2015-04-12 15:10:51 +00:00
|
|
|
ui_companion_null_notify_content_loaded,
|
2015-05-11 07:56:13 +00:00
|
|
|
ui_companion_null_notify_list_pushed,
|
2015-08-15 00:46:53 +00:00
|
|
|
NULL,
|
2015-08-30 11:03:34 +00:00
|
|
|
NULL,
|
2015-09-22 20:20:03 +00:00
|
|
|
NULL,
|
2016-06-12 17:29:07 +00:00
|
|
|
NULL,
|
2016-06-08 13:47:00 +00:00
|
|
|
&ui_browser_window_null,
|
2016-06-08 04:29:52 +00:00
|
|
|
&ui_msg_window_null,
|
2016-06-04 02:24:54 +00:00
|
|
|
&ui_window_null,
|
2016-06-07 14:31:35 +00:00
|
|
|
&ui_application_null,
|
2015-04-11 23:31:03 +00:00
|
|
|
"null",
|
|
|
|
};
|