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

@@ -14,6 +14,7 @@
* limitations under the License.
*/
#include "libOpenglRender/render_api.h"
#include "IOStream.h"
#include "FrameBuffer.h"
#include "RenderServer.h"
#include "osProcess.h"
@@ -23,6 +24,8 @@ static osUtils::childProcess *s_renderProc = NULL;
static RenderServer *s_renderThread = NULL;
static int s_renderPort = 0;
static IOStream *createRenderThread(int p_stream_buffer_size);
#ifdef __APPLE__
#define RENDER_API_USE_THREAD
#endif