[couchdb-glib] Use G_DEFINE_BOXED_TYPE



commit fe20ba502b20ffe83be4d5f393e14c6e5b790dca
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Thu Mar 24 14:04:10 2011 +0100

    Use G_DEFINE_BOXED_TYPE

 couchdb-glib/couchdb-document-info.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/couchdb-glib/couchdb-document-info.c b/couchdb-glib/couchdb-document-info.c
index b72a897..cf8b4e7 100644
--- a/couchdb-glib/couchdb-document-info.c
+++ b/couchdb-glib/couchdb-document-info.c
@@ -23,6 +23,8 @@
 
 #include "couchdb-document-info.h"
 
+G_DEFINE_BOXED_TYPE(CouchdbDocumentInfo, couchdb_document_info, couchdb_document_info_ref, couchdb_document_info_unref);
+
 struct _CouchdbDocumentInfo {
 	gint ref_count;
 
@@ -34,19 +36,6 @@ struct _CouchdbDocumentInfo {
  * CouchdbDocumentInfo object
  */
 
-GType
-couchdb_document_info_get_type (void)
-{
-	static GType object_type = 0;
-
-	if (G_UNLIKELY (!object_type))
-		object_type = g_boxed_type_register_static (g_intern_static_string ("CouchdbDocumentInfo"),
-							    (GBoxedCopyFunc) couchdb_document_info_ref,
-							    (GBoxedFreeFunc) couchdb_document_info_unref);
-
-	return object_type;
-}
-
 /**
  * couchdb_document_info_new:
  * @docid: Unique ID of the document



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