summaryrefslogtreecommitdiff
path: root/pango/querymodules.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-08-03 21:57:35 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-08-03 21:57:35 +0000
commit2584212cd0976f5f95d9381e829917e7d2a10d28 (patch)
tree5773e9f6802f8316c5c7463aa55677babe67343c /pango/querymodules.c
parent95a8d1788e884b7d8d29d4171a1adc51c61e880e (diff)
downloadpango-2584212cd0976f5f95d9381e829917e7d2a10d28.tar.gz
Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-based
Sat Aug 2 23:19:16 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-engine.[ch] modules/*/*-{fc,win32,x}.c pango/modules.c pango/break.c pango/pango-context.c pango/pango-layout.c pango/pango-modules.h pango/querymodules.c pango/shape.c: Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-based module-loading system closely based on the one used for GtkIMContext and GtkThemeEngine. * pango/pango-impl-utils.h: OK, I'm tired of typing in get_type() functions. * pango/pango-script.[ch] pango/pango-script-table.h tests/testscript.c tools/gen-script-table.pl: Add port of script-range code from ICU in preparation for future use. (#91542) * tools/gen-script-for-lang.c: Utility program to determine the script for each fontconfig .orth file. * docs/tmpl/{scripts.sgml,pango-engine-lang.sgml, pango-engine-shape.sgml} docs/pango-sections.txt docs/pango-docs.sgml: Redo to go along with the above changes. * configure.in: chmod +x tests/runtests.sh
Diffstat (limited to 'pango/querymodules.c')
-rw-r--r--pango/querymodules.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pango/querymodules.c b/pango/querymodules.c
index 6b126409..2c6542dc 100644
--- a/pango/querymodules.c
+++ b/pango/querymodules.c
@@ -88,8 +88,9 @@ void
query_module (const char *dir, const char *name)
{
void (*list) (PangoEngineInfo **engines, gint *n_engines);
- PangoEngine *(*load) (const gchar *id);
- void (*unload) (PangoEngine *engine);
+ void (*init) (GTypeModule *module);
+ void (*exit) (void);
+ PangoEngine *(*create) (const gchar *id);
GModule *module;
gchar *path;
@@ -106,8 +107,9 @@ query_module (const char *dir, const char *name)
if (module &&
g_module_symbol (module, "script_engine_list", (gpointer *) &list) &&
- g_module_symbol (module, "script_engine_load", (gpointer *) &load) &&
- g_module_symbol (module, "script_engine_unload", (gpointer *) &unload))
+ g_module_symbol (module, "script_engine_init", (gpointer *) &init) &&
+ g_module_symbol (module, "script_engine_exit", (gpointer *) &exit) &&
+ g_module_symbol (module, "script_engine_create", (gpointer *) &create))
{
gint i,j;
PangoEngineInfo *engines;