xed/xed/xed-object-module.h

95 lines
3.1 KiB
C
Raw Normal View History

/*
* xed-object-module.h
* This file is part of xed
*
* Copyright (C) 2005 - Paolo Maggi
* Copyright (C) 2008 - Jesse van den Kieboom
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/* This is a modified version of xed-module.h from Epiphany source code.
* Here the original copyright assignment:
*
* Copyright (C) 2003 Marco Pesenti Gritti
* Copyright (C) 2003, 2004 Christian Persch
*
*/
/*
* Modified by the xed Team, 2005. See the AUTHORS file for a
* list of people on the xed Team.
* See the ChangeLog files for a list of changes.
*
* $Id: xed-module.h 6263 2008-05-05 10:52:10Z sfre $
*/
#ifndef __XED_OBJECT_MODULE_H__
#define __XED_OBJECT_MODULE_H__
#include <glib-object.h>
#include <gmodule.h>
#include <stdarg.h>
G_BEGIN_DECLS
#define XED_TYPE_OBJECT_MODULE (xed_object_module_get_type ())
#define XED_OBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XED_TYPE_OBJECT_MODULE, XedObjectModule))
#define XED_OBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XED_TYPE_OBJECT_MODULE, XedObjectModuleClass))
#define XED_IS_OBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XED_TYPE_OBJECT_MODULE))
#define XED_IS_OBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XED_TYPE_OBJECT_MODULE))
#define XED_OBJECT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), XED_TYPE_OBJECT_MODULE, XedObjectModuleClass))
typedef struct _XedObjectModule XedObjectModule;
typedef struct _XedObjectModulePrivate XedObjectModulePrivate;
struct _XedObjectModule
{
GTypeModule parent;
XedObjectModulePrivate *priv;
};
typedef struct _XedObjectModuleClass XedObjectModuleClass;
struct _XedObjectModuleClass
{
GTypeModuleClass parent_class;
/* Virtual class methods */
void (* garbage_collect) ();
};
GType xed_object_module_get_type (void) G_GNUC_CONST;
XedObjectModule *xed_object_module_new (const gchar *module_name,
const gchar *path,
const gchar *type_registration,
gboolean resident);
GObject *xed_object_module_new_object (XedObjectModule *module,
const gchar *first_property_name,
...);
GType xed_object_module_get_object_type (XedObjectModule *module);
const gchar *xed_object_module_get_path (XedObjectModule *module);
const gchar *xed_object_module_get_module_name (XedObjectModule *module);
const gchar *xed_object_module_get_type_registration (XedObjectModule *module);
G_END_DECLS
#endif