[evolution-patches] (no subject)



Hi,

here comes a patch to libgdata-google that will make the
gdata_google_service_authenticate () a public method. It also tries to
fix a double free bug caused by the insert_entry method ().

PS: I'm not suscribed to the list ;-)

Br,
Jörgen
Index: libgdata-google/gdata-google-service.c
===================================================================
--- libgdata-google/gdata-google-service.c	(Revision 9341)
+++ libgdata-google/gdata-google-service.c	(Arbeitskopie)
@@ -150,7 +150,7 @@
 		return TRUE;
 }
 
-static gboolean
+gboolean
 gdata_google_service_authenticate (GDataGoogleService *service, GError **error)
 {
 	GDataGoogleServicePrivate *priv;
@@ -315,7 +315,7 @@
 
 	soup_message_set_request (msg,
 				"application/atom+xml",
-				SOUP_MEMORY_TAKE,
+				SOUP_MEMORY_COPY,
 				entry_xml,
 				strlen(entry_xml));
 
Index: libgdata-google/gdata-google-service.h
===================================================================
--- libgdata-google/gdata-google-service.h	(Revision 9341)
+++ libgdata-google/gdata-google-service.h	(Arbeitskopie)
@@ -65,6 +65,7 @@
 /**API******/
 
 GDataGoogleService * gdata_google_service_new(const gchar *serviceName, const gchar *agent);
+gboolean gdata_google_service_authenticate (GDataGoogleService *service, GError **error);
 
 G_END_DECLS
 


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