Git init
[external/pango1.0.git] / pango / pango-modules.h
1 /* Pango
2  * pango-modules.h:
3  *
4  * Copyright (C) 1999 Red Hat Software
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __PANGO_MODULES_H__
23 #define __PANGO_MODULES_H__
24
25 #include <pango/pango-engine.h>
26
27 G_BEGIN_DECLS
28
29 #ifdef PANGO_ENABLE_BACKEND
30
31 typedef struct _PangoMap PangoMap;
32 typedef struct _PangoMapEntry PangoMapEntry;
33
34 typedef struct _PangoIncludedModule PangoIncludedModule;
35
36 struct _PangoIncludedModule
37 {
38   void (*list) (PangoEngineInfo **engines,
39                 int              *n_engines);
40   void (*init) (GTypeModule      *module);
41   void (*exit) (void);
42   PangoEngine *(*create) (const char       *id);
43 };
44
45 PangoMap *     pango_find_map        (PangoLanguage       *language,
46                                       guint                engine_type_id,
47                                       guint                render_type_id);
48 PangoEngine *  pango_map_get_engine  (PangoMap            *map,
49                                       PangoScript          script);
50 void           pango_map_get_engines (PangoMap            *map,
51                                       PangoScript          script,
52                                       GSList             **exact_engines,
53                                       GSList             **fallback_engines);
54 void           pango_module_register (PangoIncludedModule *module);
55
56 #endif /* PANGO_ENABLE_BACKEND */
57
58 G_END_DECLS
59
60 #endif /* __PANGO_MODULES_H__ */