1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicscomposition/openwfcinterface/include/wfcplatform.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,49 @@
1.4 +/********************************************************************
1.5 + * *
1.6 + * Sample implementation of wfcplatform.h, version 1.0, draft 18 *
1.7 + * *
1.8 + * Copyright (c) 2007-2009 The Khronos Group *
1.9 + * *
1.10 + *********************************************************************/
1.11 +
1.12 +#ifndef _WFCPLATFORM_H_
1.13 +#define _WFCPLATFORM_H_
1.14 +
1.15 +#include <KHR/khrplatform.h>
1.16 +#include <EGL/egl.h>
1.17 +
1.18 +#ifdef __cplusplus
1.19 +extern "C" {
1.20 +#endif
1.21 +
1.22 +#ifndef WFC_API_CALL
1.23 +#define WFC_API_CALL KHRONOS_APICALL
1.24 +#endif
1.25 +#ifndef WFC_APIENTRY
1.26 +#define WFC_APIENTRY KHRONOS_APIENTRY
1.27 +#endif
1.28 +#ifndef WFC_APIEXIT
1.29 +#define WFC_APIEXIT KHRONOS_APIATTRIBUTES
1.30 +#endif
1.31 +
1.32 +#ifndef WFC_DEFAULT_SCREEN_NUMBER
1.33 +#define WFC_DEFAULT_SCREEN_NUMBER (0)
1.34 +#endif
1.35 +
1.36 +/* for backward compatibility of wfcGetOnScreenStream symbol use */
1.37 +#define wfcGetOnScreenStream extwfcGetOnScreenStream
1.38 +
1.39 +typedef khronos_int32_t WFCint;
1.40 +typedef khronos_float_t WFCfloat;
1.41 +typedef khronos_uint32_t WFCbitfield;
1.42 +typedef khronos_uint32_t WFCHandle;
1.43 +
1.44 +typedef EGLDisplay WFCEGLDisplay;
1.45 +typedef void* WFCEGLSync; /* An opaque handle to an EGLSyncKHR */
1.46 +typedef WFCHandle WFCNativeStreamType;
1.47 +
1.48 +#ifdef __cplusplus
1.49 +}
1.50 +#endif
1.51 +
1.52 +#endif /* _WFCPLATFORM_H_ */