Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / lib / .svn / text-base / ephy-module.h.svn-base
blobef47007f3790f9ad5ac18f7524592d2c0d3bfbe0
1 /*
2  *  Copyright © 2003 Marco Pesenti Gritti
3  *  Copyright © 2003, 2004 Christian Persch
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  *  $Id$
20  */
22 #ifndef EPHY_MODULE_H
23 #define EPHY_MODULE_H
25 #include <glib-object.h>
27 G_BEGIN_DECLS
29 #define EPHY_TYPE_MODULE                (ephy_module_get_type ())
30 #define EPHY_MODULE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_MODULE, EphyModule))
31 #define EPHY_MODULE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_MODULE, EphyModuleClass))
32 #define EPHY_IS_MODULE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_MODULE))
33 #define EPHY_IS_MODULE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((obj), EPHY_TYPE_MODULE))
34 #define EPHY_MODULE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), EPHY_TYPE_MODULE, EphyModuleClass))
36 typedef struct _EphyModule      EphyModule;
38 GType            ephy_module_get_type   (void);
40 EphyModule      *ephy_module_new        (const char *path,
41                                          gboolean resident);
43 const char      *ephy_module_get_path   (EphyModule *module);
45 GObject         *ephy_module_new_object (EphyModule *module);
47 G_END_DECLS
49 #endif