Massive patch for the first months work adding System FC to GHC #35
[ghc-hetmet.git] / includes / DNInvoke.h
1 /*
2  * C callable bridge to the .NET object model
3  *
4  * (c) 2003, sof.
5  *
6  */
7 #ifndef __DNINVOKE_H__
8 #define __DNINVOKE_H__
9 #include "Dotnet.h"
10
11 extern char* DN_invokeStatic ( char       *assemName,
12                                char       *methName,
13                                DotnetArg  *args,
14                                int        n_args,
15                                DotnetType resultTy,
16                                void       *res);
17 extern char* DN_getStatic ( char       *assemName,
18                             char       *fieldClsName,
19                             DotnetArg  *args,
20                             int        n_args,
21                             DotnetType resultTy,
22                             void       *res);
23 extern char* DN_setStatic ( char       *assemName,
24                             char       *fieldClsName,
25                             DotnetArg  *args,
26                             int        n_args,
27                             DotnetType resultTy,
28                             void       *res);
29 extern char* DN_createObject ( char       *assemName,
30                                char       *methName,
31                                DotnetArg  *args,
32                                int        n_args,
33                                DotnetType resultTy,
34                                void       *res);
35
36 extern char* DN_invokeMethod ( char       *methName,
37                                DotnetArg  *args,
38                                int        n_args,
39                                DotnetType resultTy,
40                                void       *res);
41
42 extern char* DN_getField ( char       *methName,
43                            DotnetArg  *args,
44                            int        n_args,
45                            DotnetType resultTy,
46                            void       *res);
47 extern char* DN_setField ( char       *clsAndMethName,
48                            DotnetArg  *args,
49                            int        n_args,
50                            DotnetType resultTy,
51                            void       *res);
52
53 extern void stopDotnetBridge(void);
54
55 #endif /* __DNINVOKE_H__ */