summaryrefslogtreecommitdiff
path: root/includes/DNInvoke.h
blob: 410bd640e11f2982edcb18b340ed170a9baaf609 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * C callable bridge to the .NET object model
 *
 * (c) 2003, sof.
 *
 */
#ifndef __DNINVOKE_H__
#define __DNINVOKE_H__
#include "Dotnet.h"

extern char* DN_invokeStatic ( char       *assemName,
			       char       *methName,
			       DotnetArg  *args,
			       int        n_args,
			       DotnetType resultTy,
			       void       *res);
extern char* DN_getStatic ( char       *assemName,
			    char       *fieldClsName,
			    DotnetArg  *args,
			    int        n_args,
			    DotnetType resultTy,
			    void       *res);
extern char* DN_setStatic ( char       *assemName,
			    char       *fieldClsName,
			    DotnetArg  *args,
			    int        n_args,
			    DotnetType resultTy,
			    void       *res);
extern char* DN_createObject ( char       *assemName,
			       char       *methName,
			       DotnetArg  *args,
			       int        n_args,
			       DotnetType resultTy,
			       void       *res);

extern char* DN_invokeMethod ( char       *methName,
			       DotnetArg  *args,
			       int        n_args,
			       DotnetType resultTy,
			       void       *res);

extern char* DN_getField ( char       *methName,
			   DotnetArg  *args,
			   int        n_args,
			   DotnetType resultTy,
			   void       *res);
extern char* DN_setField ( char       *clsAndMethName,
			   DotnetArg  *args,
			   int        n_args,
			   DotnetType resultTy,
			   void       *res);

extern void stopDotnetBridge(void);

#endif /* __DNINVOKE_H__ */