[couchdb-glib] Added missing desktopcouch_document_contact_new function



commit def262d3c8c2addcdb3bc6ab370021ab980c2e50
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Mon May 17 17:35:07 2010 +0200

    Added missing desktopcouch_document_contact_new function

 desktopcouch-glib/desktopcouch-document-contact.c |   11 +++++++++++
 desktopcouch-glib/desktopcouch-document-contact.h |    4 ++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/desktopcouch-glib/desktopcouch-document-contact.c b/desktopcouch-glib/desktopcouch-document-contact.c
index f31d346..14301d9 100644
--- a/desktopcouch-glib/desktopcouch-document-contact.c
+++ b/desktopcouch-glib/desktopcouch-document-contact.c
@@ -35,6 +35,17 @@ desktopcouch_document_contact_init (DesktopcouchDocumentContact *document)
 	desktopcouch_document_set_record_type (DESKTOPCOUCH_DOCUMENT (document), DESKTOPCOUCH_RECORD_TYPE_CONTACT);
 }
 
+/**
+ * desktopcouch_document_contact_new:
+ *
+ * Create a new #DesktopcouchDocumentContact object.
+ */
+DesktopcouchDocumentContact *
+desktopcouch_document_contact_new (void)
+{
+	return g_object_new (DESKTOPCOUCH_TYPE_DOCUMENT_CONTACT, NULL);
+}
+
 const char *
 desktopcouch_document_contact_get_title (DesktopcouchDocumentContact *document)
 {
diff --git a/desktopcouch-glib/desktopcouch-document-contact.h b/desktopcouch-glib/desktopcouch-document-contact.h
index d8dbf2b..2112334 100644
--- a/desktopcouch-glib/desktopcouch-document-contact.h
+++ b/desktopcouch-glib/desktopcouch-document-contact.h
@@ -42,6 +42,10 @@ typedef struct {
 	DesktopcouchDocumentClass parent_class;
 } DesktopcouchDocumentContactClass;
 
+GType       desktopcouch_document_contact_get_type (void);
+
+DesktopcouchDocumentContact *desktopcouch_document_contact_new (void);
+
 /*
  * Top level functions to manipulate documents representing a contact
  */



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