forked from pythonnet/pythonnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpynetclr.h
More file actions
34 lines (28 loc) · 825 Bytes
/
pynetclr.h
File metadata and controls
34 lines (28 loc) · 825 Bytes
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
// Author: Christian Heimes <christian(at)cheimes(dot)de>
#ifndef PYNET_CLR_H
#define PYNET_CLR_H
#include <Python.h>
#include <mono/jit/jit.h>
#include <mono/metadata/environment.h>
#include <mono/metadata/mono-config.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/assembly.h>
#include <glib.h>
#define MONO_VERSION "v4.0.30319.1"
#define MONO_DOMAIN "Python.Runtime"
#define PR_ASSEMBLY "Python.Runtime.dll"
typedef struct {
MonoDomain *domain;
MonoAssembly *pr_assm;
MonoMethod *shutdown;
char *pr_file;
char *error;
char *init_name;
char *shutdown_name;
PyObject* module;
} PyNet_Args;
PyNet_Args* PyNet_Init(int);
void PyNet_Finalize(PyNet_Args*);
void main_thread_handler(gpointer user_data);
char* PyNet_ExceptionToString(MonoObject *);
#endif // PYNET_CLR_H