[gmime] Register all GObject-based types in g_mime_init()



commit 901b3827c9d89582831ec31c8d13f540dfe7241d
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Nov 5 14:15:31 2011 -0400

    Register all GObject-based types in g_mime_init()
    
    2011-11-05  Jeffrey Stedfast  <fejj gnome org>
    
    	* gmime/gmime.c (g_mime_init): Register all GObject-based types
    	to prevent race conditions in multi-threaded apps.

 ChangeLog     |    5 +++++
 gmime/gmime.c |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3ffb5ff..4328f82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-05  Jeffrey Stedfast  <fejj gnome org>
+
+	* gmime/gmime.c (g_mime_init): Register all GObject-based types
+	to prevent race conditions in multi-threaded apps.
+
 2011-08-27  Jeffrey Stedfast  <fejj gnome org>
 
 	* README: Bumped version
diff --git a/gmime/gmime.c b/gmime/gmime.c
index 1b6bae9..1c27cef 100644
--- a/gmime/gmime.c
+++ b/gmime/gmime.c
@@ -120,7 +120,44 @@ g_mime_init (guint32 flags)
 	gmime_error_quark = g_quark_from_static_string ("gmime");
 	
 	/* register our GObject types with the GType system */
+	g_mime_crypto_context_get_type ();
+	g_mime_decrypt_result_get_type ();
+	g_mime_certificate_list_get_type ();
+	g_mime_signature_list_get_type ();
+	g_mime_certificate_get_type ();
+	g_mime_signature_get_type ();
+	g_mime_gpg_context_get_type ();
+	g_mime_pkcs7_context_get_type ();
+	
+	g_mime_filter_get_type ();
+	g_mime_filter_basic_get_type ();
+	g_mime_filter_best_get_type ();
+	g_mime_filter_charset_get_type ();
+	g_mime_filter_crlf_get_type ();
+	g_mime_filter_enriched_get_type ();
+	g_mime_filter_from_get_type ();
+	g_mime_filter_gzip_get_type ();
+	g_mime_filter_html_get_type ();
+	g_mime_filter_md5_get_type ();
+	g_mime_filter_strip_get_type ();
+	g_mime_filter_windows_get_type ();
+	g_mime_filter_yenc_get_type ();
+	
+	g_mime_stream_get_type ();
+	g_mime_stream_buffer_get_type ();
+	g_mime_stream_cat_get_type ();
+	g_mime_stream_file_get_type ();
+	g_mime_stream_filter_get_type ();
+	g_mime_stream_fs_get_type ();
+	g_mime_stream_gio_get_type ();
+	g_mime_stream_mem_get_type ();
+	g_mime_stream_mmap_get_type ();
+	g_mime_stream_null_get_type ();
+	g_mime_stream_pipe_get_type ();
+	
+	g_mime_parser_get_type ();
 	g_mime_message_get_type ();
+	g_mime_data_wrapper_get_type ();
 	g_mime_content_type_get_type ();
 	g_mime_content_disposition_get_type ();
 	



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