~drgeo-developers/drgeo/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>

#define XFN(export) {"", #export, (void*)export}
#define XFN2(plugin, export) {#plugin, #export, (void*)plugin##_##export}

#if !defined(HEADLESS)
int   primitivePluginBrowserReady(void);
int   primitivePluginRequestURLStream(void);
int   primitivePluginRequestURL(void);
int   primitivePluginPostURL(void);
int   primitivePluginRequestFileHandle(void);
int   primitivePluginDestroyRequest(void);
int   primitivePluginRequestState(void);
void *ioGetDisplay(void);
void *ioGetWindow(void);
#endif

void *os_exports[][3]=
{
#if !defined(HEADLESS)
  XFN(primitivePluginBrowserReady),
  XFN(primitivePluginRequestURLStream),
  XFN(primitivePluginRequestURL),
  XFN(primitivePluginPostURL),
  XFN(primitivePluginRequestFileHandle),
  XFN(primitivePluginDestroyRequest),
  XFN(primitivePluginRequestState),
  XFN(ioGetDisplay),
  XFN(ioGetWindow),
#endif
  { 0, 0, 0 }
};