2013-12-28 20:08:30 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 00:50:59 +00:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2016-01-10 03:06:50 +00:00
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
2015-01-07 16:46:50 +00:00
|
|
|
* Copyright (C) 2012-2015 - Michael Lelli
|
2013-12-28 20:08:30 +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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _RARCH_FRONTEND_H
|
|
|
|
#define _RARCH_FRONTEND_H
|
|
|
|
|
2014-06-01 02:50:00 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2016-06-03 04:02:49 +00:00
|
|
|
|
2014-10-21 03:05:52 +00:00
|
|
|
#include <boolean.h>
|
2016-06-03 04:02:49 +00:00
|
|
|
#include <retro_common_api.h>
|
|
|
|
|
2015-09-06 12:46:04 +00:00
|
|
|
#include "frontend_driver.h"
|
2014-06-01 02:50:00 +00:00
|
|
|
|
2016-06-03 04:02:49 +00:00
|
|
|
RETRO_BEGIN_DECLS
|
2014-01-06 02:28:34 +00:00
|
|
|
|
2015-01-09 00:55:10 +00:00
|
|
|
/**
|
|
|
|
* main_exit:
|
|
|
|
*
|
|
|
|
* Cleanly exit RetroArch.
|
|
|
|
*
|
|
|
|
* Also saves configuration files to disk,
|
|
|
|
* and (optionally) autosave state.
|
|
|
|
**/
|
2015-04-20 18:53:17 +00:00
|
|
|
void main_exit(void *args);
|
2015-09-17 20:05:14 +00:00
|
|
|
|
2015-01-09 00:55:10 +00:00
|
|
|
/**
|
|
|
|
* main_entry:
|
|
|
|
*
|
|
|
|
* Main function of RetroArch.
|
|
|
|
*
|
2015-04-20 19:12:39 +00:00
|
|
|
* If HAVE_MAIN is not defined, will contain main loop and will not
|
2015-09-17 20:05:14 +00:00
|
|
|
* be exited from until we exit the program. Otherwise, will
|
2015-01-09 00:55:10 +00:00
|
|
|
* just do initialization.
|
|
|
|
*
|
|
|
|
* Returns: varies per platform.
|
|
|
|
**/
|
2015-04-20 19:31:25 +00:00
|
|
|
int rarch_main(int argc, char *argv[], void *data);
|
2014-09-02 03:32:04 +00:00
|
|
|
|
2016-06-03 04:02:49 +00:00
|
|
|
RETRO_END_DECLS
|
2014-01-06 02:28:34 +00:00
|
|
|
|
2013-12-28 20:08:30 +00:00
|
|
|
#endif
|