gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3847 - bugGSF/src


From: grothoff
Subject: [GNUnet-SVN] r3847 - bugGSF/src
Date: Fri, 1 Dec 2006 21:43:55 -0800 (PST)

Author: grothoff
Date: 2006-12-01 21:43:54 -0800 (Fri, 01 Dec 2006)
New Revision: 3847

Modified:
   bugGSF/src/bugGSF.c
Log:
alternative new initialization

Modified: bugGSF/src/bugGSF.c
===================================================================
--- bugGSF/src/bugGSF.c 2006-12-02 05:22:45 UTC (rev 3846)
+++ bugGSF/src/bugGSF.c 2006-12-02 05:43:54 UTC (rev 3847)
@@ -22,11 +22,18 @@
 #include <glib-object.h>
 #include <gsf/gsf-input-memory.h>
 
-/* using libgobject, might need init! */
-void __attribute__ ((constructor)) bugGSF_init(void) {
-  g_type_init();
+void __attribute__ ((constructor)) ole2_ltdl_init() {
+  //  g_type_init();
+  // gsf_init_dynamic(NULL);
+  gsf_init();
 }
 
+void __attribute__ ((destructor)) ole2_ltdl_fini() {
+  // gsf_shutdown_dynamic(NULL);
+  gsf_shutdown();
+}
+
+
 void
 bugGSF_main() {
   GsfInput * input;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]