From c8b7bc9845a6ee621493147fa24984d44252750f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jul 2016 02:13:19 +0200 Subject: [PATCH] Add platform_bsd.c --- frontend/drivers/platform_bsd.c | 42 +++++++++++++++++++++++++++++++++ frontend/frontend_driver.c | 3 +++ frontend/frontend_driver.h | 1 + 3 files changed, 46 insertions(+) create mode 100644 frontend/drivers/platform_bsd.c diff --git a/frontend/drivers/platform_bsd.c b/frontend/drivers/platform_bsd.c new file mode 100644 index 0000000000..107e8afd9d --- /dev/null +++ b/frontend/drivers/platform_bsd.c @@ -0,0 +1,42 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2010-2014 - Hans-Kristian Arntzen + * Copyright (C) 2011-2016 - Daniel De Matteis + * Copyright (C) 2012-2015 - Jason Fetters + * + * 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 . + */ + +#include "../frontend_driver.h" + +#include +#include + +frontend_ctx_driver_t frontend_ctx_bsd = { + NULL, /* environment_get */ + NULL, /* init */ + NULL, /* deinit */ + NULL, /* exitspawn */ + NULL, /* process_args */ + NULL, /* exec */ + NULL, /* set_fork */ + NULL, /* shutdown */ + NULL, /* get_name */ + NULL, /* get_os */ + NULL, /* get_rating */ + NULL, /* load_content */ + NULL, /* get_architecture */ + NULL, /* get_powerstate */ + NULL, /* parse_drive_list */ + NULL, /* get_mem_total */ + NULL, /* get_mem_free */ + NULL, /* install_signal_handler */ + "bsd", +}; diff --git a/frontend/frontend_driver.c b/frontend/frontend_driver.c index ee72d2e08a..e900de9ae7 100644 --- a/frontend/frontend_driver.c +++ b/frontend/frontend_driver.c @@ -43,6 +43,9 @@ static frontend_ctx_driver_t *frontend_ctx_drivers[] = { #if defined(__linux__) &frontend_ctx_linux, #endif +#if defined(BSD) + &frontend_ctx_bsd, +#endif #if defined(PSP) || defined(VITA) &frontend_ctx_psp, #endif diff --git a/frontend/frontend_driver.h b/frontend/frontend_driver.h index 2193273d96..b2bf89e610 100644 --- a/frontend/frontend_driver.h +++ b/frontend/frontend_driver.h @@ -95,6 +95,7 @@ extern frontend_ctx_driver_t frontend_ctx_xdk; extern frontend_ctx_driver_t frontend_ctx_qnx; extern frontend_ctx_driver_t frontend_ctx_darwin; extern frontend_ctx_driver_t frontend_ctx_linux; +extern frontend_ctx_driver_t frontend_ctx_bsd; extern frontend_ctx_driver_t frontend_ctx_psp; extern frontend_ctx_driver_t frontend_ctx_ctr; extern frontend_ctx_driver_t frontend_ctx_win32;