summaryrefslogtreecommitdiff
path: root/pluma/pluma-object-module.h
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-object-module.h')
-rwxr-xr-xpluma/pluma-object-module.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/pluma/pluma-object-module.h b/pluma/pluma-object-module.h
new file mode 100755
index 00000000..d197b008
--- /dev/null
+++ b/pluma/pluma-object-module.h
@@ -0,0 +1,94 @@
+/*
+ * pluma-object-module.h
+ * This file is part of pluma
+ *
+ * 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., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/* This is a modified version of pluma-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 pluma Team, 2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
+ *
+ * $Id: pluma-module.h 6263 2008-05-05 10:52:10Z sfre $
+ */
+
+#ifndef __PLUMA_OBJECT_MODULE_H__
+#define __PLUMA_OBJECT_MODULE_H__
+
+#include <glib-object.h>
+#include <gmodule.h>
+#include <stdarg.h>
+
+G_BEGIN_DECLS
+
+#define PLUMA_TYPE_OBJECT_MODULE (pluma_object_module_get_type ())
+#define PLUMA_OBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUMA_TYPE_OBJECT_MODULE, PlumaObjectModule))
+#define PLUMA_OBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUMA_TYPE_OBJECT_MODULE, PlumaObjectModuleClass))
+#define PLUMA_IS_OBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUMA_TYPE_OBJECT_MODULE))
+#define PLUMA_IS_OBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUMA_TYPE_OBJECT_MODULE))
+#define PLUMA_OBJECT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLUMA_TYPE_OBJECT_MODULE, PlumaObjectModuleClass))
+
+typedef struct _PlumaObjectModule PlumaObjectModule;
+typedef struct _PlumaObjectModulePrivate PlumaObjectModulePrivate;
+
+struct _PlumaObjectModule
+{
+ GTypeModule parent;
+
+ PlumaObjectModulePrivate *priv;
+};
+
+typedef struct _PlumaObjectModuleClass PlumaObjectModuleClass;
+
+struct _PlumaObjectModuleClass
+{
+ GTypeModuleClass parent_class;
+
+ /* Virtual class methods */
+ void (* garbage_collect) ();
+};
+
+GType pluma_object_module_get_type (void) G_GNUC_CONST;
+
+PlumaObjectModule *pluma_object_module_new (const gchar *module_name,
+ const gchar *path,
+ const gchar *type_registration,
+ gboolean resident);
+
+GObject *pluma_object_module_new_object (PlumaObjectModule *module,
+ const gchar *first_property_name,
+ ...);
+
+GType pluma_object_module_get_object_type (PlumaObjectModule *module);
+const gchar *pluma_object_module_get_path (PlumaObjectModule *module);
+const gchar *pluma_object_module_get_module_name (PlumaObjectModule *module);
+const gchar *pluma_object_module_get_type_registration (PlumaObjectModule *module);
+
+G_END_DECLS
+
+#endif