gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
The gjs .pc now correctly adds mozjs. Also update for the testing option removal
feature/gjs-cc
2018-05-06, Gary Kramlich
63b929558f43
The gjs .pc now correctly adds mozjs. Also update for the testing option removal
/*
* Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GPLUGIN_GJS_PLUGIN_H
#define GPLUGIN_GJS_PLUGIN_H
#define GPLUGIN_TYPE_GJS_PLUGIN (gplugin_gjs_plugin_get_type())
#define GPLUGIN_GJS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLUGIN_TYPE_GJS_PLUGIN, GPluginGjsPlugin))
#define GPLUGIN_GJS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), GPLUGIN_TYPE_GJS_PLUGIN, GPluginGjsPluginClass))
#define GPLUGIN_IS_GJS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLUGIN_TYPE_GJS_PLUGIN))
#define GPLUGIN_IS_GJS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), GPLUGIN_TYPE_GJS_PLUGIN))
#define GPLUGIN_GJS_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLUGIN_TYPE_GJS_PLUGIN, GPluginGjsPluginClass))
typedef
struct
_GPluginGjsPlugin
GPluginGjsPlugin
;
typedef
struct
_GPluginGjsPluginClass
GPluginGjsPluginClass
;
#include
<gplugin.h>
#include
<gplugin-native.h>
#include
<gjs/gjs-module.h>
struct
_GPluginGjsPlugin
{
GPluginPlugin
parent
;
};
struct
_GPluginGjsPluginClass
{
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_gjs_plugin_register
(
GPluginNativePlugin
*
plugin
);
GType
gplugin_gjs_plugin_get_type
(
void
);
GjsContext
*
gplugin_gjs_plugin_get_context
(
const
GPluginGjsPlugin
*
plugin
);
JSObject
*
gplugin_gjs_plugin_get_global_scope
(
const
GPluginGjsPlugin
*
plugin
);
JSContext
*
gplugin_gjs_plugin_get_js_context
(
const
GPluginGjsPlugin
*
plugin
);
G_END_DECLS
#endif
/* GPLUGIN_GJS_PLUGIN_H */