]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-module.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[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., 51 Franklin Street, Fifth Floor, 
20  * Boston, MA 02110-1301, 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 #if !defined (EVINCE_COMPILATION)
42 #error "This is a private header."
43 #endif
44
45 #ifndef EV_MODULE_H
46 #define EV_MODULE_H
47
48 #include <glib-object.h>
49
50 G_BEGIN_DECLS
51
52 #define EV_TYPE_MODULE            (ev_module_get_type ())
53 #define EV_MODULE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_MODULE, EvModule))
54 #define EV_MODULE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_MODULE, EvModuleClass))
55 #define EV_IS_MODULE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_MODULE))
56 #define EV_IS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_MODULE))
57 #define EV_MODULE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_MODULE, EvModuleClass))
58
59 typedef struct _EvModule EvModule;
60
61 GType        ev_module_get_type        (void) G_GNUC_CONST;
62
63 EvModule    *ev_module_new             (const gchar *path,
64                                         gboolean     resident);
65
66 const gchar *ev_module_get_path        (EvModule    *module);
67
68 GObject     *ev_module_new_object      (EvModule    *module);
69
70 GType        ev_module_get_object_type (EvModule    *module);
71
72 G_END_DECLS
73
74 #endif /* EV_MODULE_H */