~drgeo-developers/drgeo/trunk

« back to all changes in this revision

Viewing changes to VMs/iPad/source/unix/vm/osExports.c

  • Committer: Hilaire Fernandes
  • Date: 2012-01-27 21:15:40 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20120127211540-912spf97bhpx6mve
Initial additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
 
 
3
#define XFN(export) {"", #export, (void*)export}
 
4
#define XFN2(plugin, export) {#plugin, #export, (void*)plugin##_##export}
 
5
 
 
6
#if !defined(HEADLESS)
 
7
int   primitivePluginBrowserReady(void);
 
8
int   primitivePluginRequestURLStream(void);
 
9
int   primitivePluginRequestURL(void);
 
10
int   primitivePluginPostURL(void);
 
11
int   primitivePluginRequestFileHandle(void);
 
12
int   primitivePluginDestroyRequest(void);
 
13
int   primitivePluginRequestState(void);
 
14
void *ioGetDisplay(void);
 
15
void *ioGetWindow(void);
 
16
#endif
 
17
 
 
18
void *os_exports[][3]=
 
19
{
 
20
#if !defined(HEADLESS)
 
21
  XFN(primitivePluginBrowserReady),
 
22
  XFN(primitivePluginRequestURLStream),
 
23
  XFN(primitivePluginRequestURL),
 
24
  XFN(primitivePluginPostURL),
 
25
  XFN(primitivePluginRequestFileHandle),
 
26
  XFN(primitivePluginDestroyRequest),
 
27
  XFN(primitivePluginRequestState),
 
28
  XFN(ioGetDisplay),
 
29
  XFN(ioGetWindow),
 
30
#endif
 
31
  { 0, 0, 0 }
 
32
};