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
43 lines (36 loc) · 1.33 KB
/
pynetclr.h
File metadata and controls
43 lines (36 loc) · 1.33 KB
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
// ==========================================================================
// This software is subject to the provisions of the Zope Public License,
// Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
// THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
// WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
// FOR A PARTICULAR PURPOSE.
// ==========================================================================
//
// 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 "v2.0.50727"
#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;
} 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