emulator: opengl: Make render_api.h C-compatible

This change modifies the function declarations under
developement/tools/emulator/opengl/host/include/render_api.h
to make them callable from C.

This is preparation work for integrating the rendering library
into the emulator. The plan is to dlopen() the library dynamically
and using non-mangled function names makes using dlsym() both
easier and more portable.

Change-Id: I34656ea4618dbb989fb6ff78df43e9bfb38a7799
This commit is contained in:
David 'Digit' Turner
2011-08-05 16:28:01 +02:00
parent 3e6fbdd1b2
commit 3a064ab539
2 changed files with 10 additions and 10 deletions

View File

@@ -16,7 +16,10 @@
#ifndef _OPENGL_RENDERER_RENDER_API_H
#define _OPENGL_RENDERER_RENDER_API_H
#include "IOStream.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "render_api_platform_types.h"
//
@@ -41,14 +44,8 @@ bool initOpenGLRenderer(FBNativeWindowType window,
//
bool stopOpenGLRenderer();
//
// createRenderThread - opens a new communication channel to the renderer
// process and creates new rendering thread.
// returns a pointer to IOStream through which command tokens are being sent
// to the render thread for execution. 'p_stream_buffer_size' is the internal
// stream buffer size.
// The thread is destroyed when deleting the IOStream object.
//
IOStream *createRenderThread(int p_stream_buffer_size);
#ifdef __cplusplus
}
#endif
#endif