OpenMAXAL_Platform.h revision 8db0b106cdce5f5216b1535492de7930ad738aed
1/* 2 * Copyright (c) 2007-2010 The Khronos Group Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining 5 * a copy of this software and/or associated documentation files (the 6 * "Materials "), to deal in the Materials without restriction, including 7 * without limitation the rights to use, copy, modify, merge, publish, 8 * distribute, sublicense, and/or sell copies of the Materials, and to 9 * permit persons to whom the Materials are furnished to do so, subject to 10 * the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included 13 * in all copies or substantial portions of the Materials. 14 * 15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 * 23 * OpenMAXAL_Platform.h - OpenMAX AL version 1.0.1 24 * 25 */ 26 27/****************************************************************************/ 28/* NOTE: This file contains definitions for the base types and the */ 29/* XAAPIENTRY macro. This file **WILL NEED TO BE EDITED** to provide */ 30/* the correct definitions specific to the platform being used. */ 31/****************************************************************************/ 32 33#ifndef _OPENMAXAL_PLATFORM_H_ 34#define _OPENMAXAL_PLATFORM_H_ 35 36typedef unsigned char xa_uint8_t; 37typedef signed char xa_int8_t; 38typedef unsigned short xa_uint16_t; 39typedef signed short xa_int16_t; 40typedef unsigned long xa_uint32_t; 41typedef signed long xa_int32_t; 42typedef unsigned long long xa_uint64_t; 43 44#ifndef XAAPIENTRY 45#define XAAPIENTRY /* override per-platform */ 46#endif 47 48/** The XA_API is a platform-specific macro used 49 * to declare OPENMAX AL function prototypes. It is modified to meet the 50 * requirements for a particular platform 51 * 52 * Example: 53 * #ifdef __SYMBIAN32__ 54 * # define XA_API __declspec(dllimport) 55 * #endif 56 */ 57 58#ifndef XA_API 59#define XA_API 60#endif 61 62#endif /* _OPENMAXAL_PLATFORM_H_ */ 63