RetroArch/general.h

77 lines
1.7 KiB
C
Raw Normal View History

2012-04-21 23:13:50 +02:00
/* RetroArch - A frontend for libretro.
2014-01-01 01:50:59 +01:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2015-01-07 17:46:50 +01:00
* Copyright (C) 2011-2015 - Daniel De Matteis
2010-12-24 01:33:40 +01:00
*
2012-04-21 23:13:50 +02:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2010-12-24 01:33:40 +01:00
* 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.
*
2012-04-21 23:13:50 +02:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2010-12-24 01:33:40 +01:00
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
2012-04-21 23:31:57 +02:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2010-12-24 01:33:40 +01:00
* If not, see <http://www.gnu.org/licenses/>.
*/
2012-04-21 23:25:32 +02:00
#ifndef __RARCH_GENERAL_H
#define __RARCH_GENERAL_H
2014-10-16 07:29:42 +02:00
#include <stdint.h>
2015-11-23 21:58:39 +01:00
#include <math.h>
2012-01-02 13:32:25 +01:00
#include <limits.h>
2015-09-05 14:01:03 +02:00
#include <boolean.h>
#include <compat/strl.h>
2014-10-21 08:02:40 +02:00
#include <compat/posix_string.h>
2015-09-05 14:01:03 +02:00
#include <retro_inline.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include "runloop.h"
2015-11-29 01:57:16 +01:00
#include "defaults.h"
#include "verbosity.h"
2015-09-05 14:01:03 +02:00
#ifdef HAVE_CONFIG_H
#include "config.h"
2012-11-23 10:34:40 +01:00
#endif
2012-07-24 02:47:28 +02:00
#ifdef HAVE_COMMAND
#include "command.h"
#endif
2015-09-05 14:01:03 +02:00
#ifndef PACKAGE_VERSION
2015-11-07 21:46:46 +01:00
#define PACKAGE_VERSION "1.3.0"
2015-09-05 14:01:03 +02:00
#endif
2013-02-09 10:36:39 +01:00
#ifdef __cplusplus
extern "C" {
#endif
enum sound_mode_enums
{
SOUND_MODE_NORMAL = 0,
#ifdef HAVE_RSOUND
SOUND_MODE_RSOUND,
#endif
#ifdef HAVE_HEADSET
SOUND_MODE_HEADSET,
#endif
SOUND_MODE_LAST
};
2013-02-09 10:36:39 +01:00
#ifdef __cplusplus
}
#endif
2015-01-13 22:08:20 +01:00
/**
* retro_fail:
2015-01-13 22:08:20 +01:00
* @error_code : Error code.
* @error : Error message to show.
*
* Sanely kills the program.
**/
2015-11-29 02:27:48 +01:00
void retro_fail(int error_code, const char *error);
#endif