RetroArch/frontend/frontend.h

57 lines
1.5 KiB
C
Raw Normal View History

/* 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
*
* 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
#include <boolean.h>
2016-06-03 04:02:49 +00:00
#include <retro_common_api.h>
#include "frontend_driver.h"
2014-06-01 02:50:00 +00:00
2016-06-03 04:02:49 +00:00
RETRO_BEGIN_DECLS
2015-01-09 00:55:10 +00:00
/**
* main_exit:
*
* Cleanly exit RetroArch.
*
* Also saves configuration files to disk,
* and (optionally) autosave state.
**/
void main_exit(void *args);
2015-01-09 00:55:10 +00:00
/**
* main_entry:
*
* Main function of RetroArch.
*
* If HAVE_MAIN is not defined, will contain main loop and will not
* 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
#endif