graphicscomposition/openwfcinterface/include/wfcplatform.h
author Faisal Memon <faisal.memon@nokia.com>
Fri, 25 Jun 2010 17:49:58 +0100
branchEGL_MERGE
changeset 105 158b2308cc08
parent 0 5d03bc08d59c
child 110 7f25ef56562d
child 141 f5b6a43d0d2d
permissions -rw-r--r--
Fix def files so that the implementation agnostic interface definition has no non-standards defined entry points, and change the eglrefimpl specific implementation to place its private entry points high up in the ordinal order space in the implementation region, not the standards based entrypoints region.

/*********************************************************************
 *                                                                   *
 * Sample implementation of wfcplatform.h, version 1.0, draft 18     *
 *                                                                   *
 * Copyright � 2007-2009 The Khronos Group                           *
 *                                                                   *
 *********************************************************************/

#ifndef _WFCPLATFORM_H_
#define _WFCPLATFORM_H_

#include <KHR/khrplatform.h>
#include <EGL/egl.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef WFC_API_CALL
#define WFC_API_CALL KHRONOS_APICALL
#endif
#ifndef WFC_APIENTRY
#define WFC_APIENTRY KHRONOS_APIENTRY
#endif
#ifndef WFC_APIEXIT
#define WFC_APIEXIT KHRONOS_APIATTRIBUTES
#endif

#ifndef WFC_DEFAULT_SCREEN_NUMBER
#define WFC_DEFAULT_SCREEN_NUMBER (0)
#endif

typedef khronos_int32_t     WFCint;
typedef khronos_float_t     WFCfloat;
typedef khronos_uint32_t    WFCbitfield;
typedef khronos_uint32_t    WFCHandle;

typedef EGLDisplay          WFCEGLDisplay;
typedef void*               WFCEGLSync;   /* An opaque handle to an EGLSyncKHR */
typedef WFCHandle           WFCNativeStreamType;

#ifdef __cplusplus
}
#endif

#endif /* _WFCPLATFORM_H_ */