// ========================================================================== // 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 #ifndef PYNET_CLR_H #define PYNET_CLR_H #include #include #include #include #include #include #include #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; } 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