]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-module.h
09d46fa2556599d718882c9e72b32544638b0859
[evince.git] / libdocument / ev-module.h
1 /*
2  * ev-module.h
3  * This file is part of Evince
4  *
5  * Copyright (C) 2005 - Paolo Maggi 
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, 
20  * Boston, MA 02111-1307, USA. 
21  */
22  
23 /* This is a modified version of gedit-module.h from Epiphany source code.
24  * Here the original copyright assignment:
25  *
26  *  Copyright (C) 2003 Marco Pesenti Gritti
27  *  Copyright (C) 2003, 2004 Christian Persch
28  *
29  */
30
31 /*
32  * Modified by the gedit Team, 2005. See the AUTHORS file for a 
33  * list of people on the gedit Team.  
34  * See the ChangeLog files for a list of changes. 
35  *
36  * $Id: gedit-module.h 5263 2006-10-08 14:26:02Z pborelli $
37  */
38
39 /* Modified by Evince Team */
40  
41 #ifndef EV_MODULE_H
42 #define EV_MODULE_H
43
44 #include <glib-object.h>
45
46 G_BEGIN_DECLS
47
48 #define EV_TYPE_MODULE            (ev_module_get_type ())
49 #define EV_MODULE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_MODULE, EvModule))
50 #define EV_MODULE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_MODULE, EvModuleClass))
51 #define EV_IS_MODULE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_MODULE))
52 #define EV_IS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_MODULE))
53 #define EV_MODULE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_MODULE, EvModuleClass))
54
55 typedef struct _EvModule EvModule;
56
57 GType        ev_module_get_type        (void) G_GNUC_CONST;
58
59 EvModule    *ev_module_new             (const gchar *path,
60                                         gboolean     resident);
61
62 const gchar *ev_module_get_path        (EvModule    *module);
63
64 GObject     *ev_module_new_object      (EvModule    *module);
65
66 GType        ev_module_get_object_type (EvModule    *module);
67
68 G_END_DECLS
69
70 #endif /* EV_MODULE_H */