gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
abandoning this branch
draft
feature/mono
2021-04-28, Gary Kramlich
bb31846ffcb7
abandoning this branch
/*
* Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GPLUGIN_MONO_PLUGIN_H
#define GPLUGIN_MONO_PLUGIN_H
#define GPLUGIN_TYPE_MONO_PLUGIN (gplugin_mono_plugin_get_type())
#define GPLUGIN_MONO_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLUGIN_TYPE_MONO_PLUGIN, GPluginMonoPlugin))
#define GPLUGIN_MONO_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), GPLUGIN_TYPE_MONO_PLUGIN, GPluginMonoPluginClass))
#define GPLUGIN_IS_MONO_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLUGIN_TYPE_MONO_PLUGIN))
#define GPLUGIN_IS_MONO_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), GPLUGIN_TYPE_MONO_PLUGIN))
#define GPLUGIN_MONO_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLUGIN_TYPE_MONO_PLUGIN, GPluginMonoPluginClass))
typedef
struct
_GPluginMonoPlugin
GPluginMonoPlugin
;
typedef
struct
_GPluginMonoPluginClass
GPluginMonoPluginClass
;
#include
<gplugin.h>
#include
<gplugin-native.h>
#include
<mono/jit/jit.h>
#include
<mono/metadata/assembly.h>
struct
_GPluginMonoPlugin
{
GPluginPlugin
parent
;
};
struct
_GPluginMonoPluginClass
{
GPluginPluginClass
parent
;
void
(
*
_gplugin_reserved_1
)(
void
);
void
(
*
_gplugin_reserved_2
)(
void
);
void
(
*
_gplugin_reserved_3
)(
void
);
void
(
*
_gplugin_reserved_4
)(
void
);
};
G_BEGIN_DECLS
void
gplugin_mono_plugin_register
(
GPluginNativePlugin
*
plugin
);
GType
gplugin_mono_plugin_get_type
(
void
);
MonoDomain
*
gplugin_mono_plugin_get_domain
(
const
GPluginMonoPlugin
*
plugin
);
MonoAssembly
*
gplugin_mono_plugin_get_assembly
(
const
GPluginMonoPlugin
*
plugin
);
G_END_DECLS
#endif
/* GPLUGIN_MONO_PLUGIN_H */