mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-13 06:00:36 +01:00
g_module_symbol takes a gpointer *, not just a gpointer
2001-12-03 Manish Singh <yosh@gimp.org> * tests/module-test.c: g_module_symbol takes a gpointer *, not just a gpointer
This commit is contained in:
parent
fdfddf0fdf
commit
88b9c7f902
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-03 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tests/module-test.c: g_module_symbol takes a gpointer *, not just
|
||||||
|
a gpointer
|
||||||
|
|
||||||
2001-11-29 Havoc Pennington <hp@redhat.com>
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* glib/gtree.c (g_tree_foreach):
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
@ -95,7 +95,7 @@ main (int arg,
|
|||||||
if (!module_self)
|
if (!module_self)
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
|
|
||||||
if (!g_module_symbol (module_self, "g_module_close", (gpointer) &f_self))
|
if (!g_module_symbol (module_self, "g_module_close", (gpointer *) &f_self))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
|
|
||||||
module_a = g_module_open (plugin_a, G_MODULE_BIND_LAZY);
|
module_a = g_module_open (plugin_a, G_MODULE_BIND_LAZY);
|
||||||
@ -109,21 +109,21 @@ main (int arg,
|
|||||||
/* get plugin state vars */
|
/* get plugin state vars */
|
||||||
|
|
||||||
if (!g_module_symbol (module_a, "gplugin_a_state",
|
if (!g_module_symbol (module_a, "gplugin_a_state",
|
||||||
(gpointer) &gplugin_a_state))
|
(gpointer *) &gplugin_a_state))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
|
|
||||||
if (!g_module_symbol (module_b, "gplugin_b_state",
|
if (!g_module_symbol (module_b, "gplugin_b_state",
|
||||||
(gpointer) &gplugin_b_state))
|
(gpointer *) &gplugin_b_state))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, "check-init");
|
test_states (NULL, NULL, "check-init");
|
||||||
|
|
||||||
/* get plugin specific symbols and call them
|
/* get plugin specific symbols and call them
|
||||||
*/
|
*/
|
||||||
if (!g_module_symbol (module_a, "gplugin_a_func", (gpointer) &f_a))
|
if (!g_module_symbol (module_a, "gplugin_a_func", (gpointer *) &f_a))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
if (!g_module_symbol (module_b, "gplugin_b_func", (gpointer) &f_b))
|
if (!g_module_symbol (module_b, "gplugin_b_func", (gpointer *) &f_b))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
@ -136,15 +136,15 @@ main (int arg,
|
|||||||
/* get and call globally clashing functions
|
/* get and call globally clashing functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!g_module_symbol (module_self, "g_clash_func", (gpointer) &f_self))
|
if (!g_module_symbol (module_self, "g_clash_func", (gpointer *) &f_self))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
if (!g_module_symbol (module_a, "g_clash_func", (gpointer) &f_a))
|
if (!g_module_symbol (module_a, "g_clash_func", (gpointer *) &f_a))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
if (!g_module_symbol (module_b, "g_clash_func", (gpointer) &f_b))
|
if (!g_module_symbol (module_b, "g_clash_func", (gpointer *) &f_b))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
@ -159,11 +159,11 @@ main (int arg,
|
|||||||
|
|
||||||
/* get and call clashing plugin functions */
|
/* get and call clashing plugin functions */
|
||||||
|
|
||||||
if (!g_module_symbol (module_a, "gplugin_clash_func", (gpointer) &f_a))
|
if (!g_module_symbol (module_a, "gplugin_clash_func", (gpointer *) &f_a))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
if (!g_module_symbol (module_b, "gplugin_clash_func", (gpointer) &f_b))
|
if (!g_module_symbol (module_b, "gplugin_clash_func", (gpointer *) &f_b))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ main (int arg,
|
|||||||
|
|
||||||
/* call gmodule function from A */
|
/* call gmodule function from A */
|
||||||
|
|
||||||
if (!g_module_symbol (module_a, "gplugin_a_module_func", (gpointer) &gmod_f))
|
if (!g_module_symbol (module_a, "gplugin_a_module_func", (gpointer *) &gmod_f))
|
||||||
g_error ("error: %s", g_module_error ());
|
g_error ("error: %s", g_module_error ());
|
||||||
test_states (NULL, NULL, NULL);
|
test_states (NULL, NULL, NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user