From 88b9c7f902d352483f8696e2038a0dbdda56b615 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Mon, 3 Dec 2001 19:22:50 +0000 Subject: [PATCH] g_module_symbol takes a gpointer *, not just a gpointer 2001-12-03 Manish Singh * tests/module-test.c: g_module_symbol takes a gpointer *, not just a gpointer --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ tests/module-test.c | 22 +++++++++++----------- 9 files changed, 51 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 428ef5537..50d57ed36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 428ef5537..50d57ed36 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-12-03 Manish Singh + + * tests/module-test.c: g_module_symbol takes a gpointer *, not just + a gpointer + 2001-11-29 Havoc Pennington * glib/gtree.c (g_tree_foreach): diff --git a/tests/module-test.c b/tests/module-test.c index f77235b25..ba013b426 100644 --- a/tests/module-test.c +++ b/tests/module-test.c @@ -95,7 +95,7 @@ main (int arg, if (!module_self) 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 ()); module_a = g_module_open (plugin_a, G_MODULE_BIND_LAZY); @@ -109,21 +109,21 @@ main (int arg, /* get plugin state vars */ if (!g_module_symbol (module_a, "gplugin_a_state", - (gpointer) &gplugin_a_state)) + (gpointer *) &gplugin_a_state)) g_error ("error: %s", g_module_error ()); if (!g_module_symbol (module_b, "gplugin_b_state", - (gpointer) &gplugin_b_state)) + (gpointer *) &gplugin_b_state)) g_error ("error: %s", g_module_error ()); test_states (NULL, NULL, "check-init"); /* 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 ()); 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 ()); test_states (NULL, NULL, NULL); @@ -136,15 +136,15 @@ main (int arg, /* 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 ()); 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 ()); 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 ()); test_states (NULL, NULL, NULL); @@ -159,11 +159,11 @@ main (int arg, /* 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 ()); 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 ()); test_states (NULL, NULL, NULL); @@ -177,7 +177,7 @@ main (int arg, /* 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 ()); test_states (NULL, NULL, NULL);