Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GOPluginService ├── GOPluginServiceFileOpener ├── GOPluginServiceFileSaver ├── GOPluginServiceGeneral ├── GOPluginServiceSimple │ ├── GOPluginServiceGObjectLoader │ ╰── GOPluginServiceGObjectLoader ╰── GOPluginServicePluginLoader
#define GO_PLUGIN_SERVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE, GOPluginService))
#define GO_IS_PLUGIN_SERVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE))
#define GO_PLUGIN_SERVICE_GENERAL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_GENERAL, GOPluginServiceGeneral))
#define GO_IS_PLUGIN_SERVICE_GENERAL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_GENERAL))
#define GO_PLUGIN_SERVICE_FILE_OPENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_FILE_OPENER, GOPluginServiceFileOpener))
#define GO_IS_PLUGIN_SERVICE_FILE_OPENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_FILE_OPENER))
#define GO_PLUGIN_SERVICE_FILE_SAVER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_FILE_SAVER, GOPluginServiceFileSaver))
#define GO_IS_PLUGIN_SERVICE_FILE_SAVER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_FILE_SAVER))
#define GO_PLUGIN_SERVICE_PLUGIN_LOADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER, GOPluginServicePluginLoader))
#define GO_IS_PLUGIN_SERVICE_PLUGIN_LOADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER))
GType go_plugin_service_plugin_loader_generate_type (GOPluginService *service
,GOErrorInfo **ret_error
);
#define GO_PLUGIN_SERVICE_GOBJECT_LOADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER, GOPluginServiceGObjectLoader))
#define GO_IS_PLUGIN_SERVICE_GOBJECT_LOADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER))
GType
go_plugin_service_gobject_loader_get_type
(void
);
#define GO_PLUGIN_SERVICE_SIMPLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_SIMPLE, GOPluginServiceSimple))
#define GO_IS_PLUGIN_SERVICE_SIMPLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_SIMPLE))
GOPluginService * go_plugin_service_new (GOPlugin *plugin
,xmlNode *tree
,GOErrorInfo **ret_error
);
char const *
go_plugin_service_get_description (GOPluginService *service
);
void go_plugin_service_activate (GOPluginService *service
,GOErrorInfo **ret_error
);
void go_plugin_service_deactivate (GOPluginService *service
,GOErrorInfo **ret_error
);
void go_plugin_service_load (GOPluginService *service
,GOErrorInfo **ret_error
);
void go_plugin_service_unload (GOPluginService *service
,GOErrorInfo **ret_error
);
void go_plugin_service_define (char const *type_str
,GOPluginServiceCreate ctor
);
Allow the definition of new service types
typedef struct { GObjectClass g_object_class; void (*read_xml) (GOPluginService *service, xmlNode *tree, GOErrorInfo **ret_error); void (*activate) (GOPluginService *service, GOErrorInfo **ret_error); void (*deactivate) (GOPluginService *service, GOErrorInfo **ret_error); char *(*get_description) (GOPluginService *service); } GOPluginServiceClass;
#define GO_TYPE_PLUGIN_SERVICE_GENERAL (go_plugin_service_general_get_type ())
typedef struct { void (*plugin_func_init) (GOPluginService *service, GOErrorInfo **ret_error); void (*plugin_func_cleanup) (GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServiceGeneralCallbacks;
#define GO_TYPE_PLUGIN_SERVICE_FILE_OPENER (go_plugin_service_file_opener_get_type ())
typedef struct { /* plugin_func_file_probe may be NULL */ gboolean (*plugin_func_file_probe) ( GOFileOpener const *fo, GOPluginService *service, GsfInput *input, GOFileProbeLevel pl); void (*plugin_func_file_open) ( GOFileOpener const *fo, GOPluginService *service, GOIOContext *io_context, gpointer fixme_workbook_view, GsfInput *input); } GOPluginServiceFileOpenerCallbacks;
#define GO_TYPE_PLUGIN_SERVICE_FILE_SAVER (go_plugin_service_file_saver_get_type ())
typedef struct { void (*plugin_func_file_save) ( GOFileSaver const *fs, GOPluginService *service, GOIOContext *io_context, gconstpointer fixme_workbook_view, GsfOutput *output); } GOPluginServiceFileSaverCallbacks;
#define GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER (go_plugin_service_plugin_loader_get_type ())
typedef struct _GOPluginServicePluginLoader GOPluginServicePluginLoader;
typedef struct { GType (*plugin_func_get_loader_type) ( GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServicePluginLoaderCallbacks;
#define GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER (go_plugin_service_gobject_loader_get_type ())
typedef struct _GOPluginServiceGObjectLoader GOPluginServiceGObjectLoader;
typedef struct { GOPluginServiceClass plugin_service_class; GHashTable *pending; /* has service instances by type names */ } GOPluginServiceGObjectLoaderClass;
#define GO_TYPE_PLUGIN_SERVICE_SIMPLE (go_plugin_service_simple_get_type ())