[evolution-ews] Add copy folder id function



commit 93ca10a727d26286f7f5e30d9c861d7b3792e704
Author: Pavel Ocheretny <pocheretny git gnome org>
Date:   Tue May 3 09:54:21 2011 +0300

    Add copy folder id function

 src/server/e-ews-folder.c |   14 ++++++++++++++
 src/server/e-ews-folder.h |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/server/e-ews-folder.c b/src/server/e-ews-folder.c
index 366ca57..4b3c66d 100644
--- a/src/server/e-ews-folder.c
+++ b/src/server/e-ews-folder.c
@@ -206,6 +206,20 @@ e_ews_folder_new_from_soap_parameter (ESoapParameter *param)
 	return folder;
 }
 
+EwsFolderId *
+e_ews_folder_fid_copy (const EwsFolderId *fid)
+{
+	EwsFolderId *fid_copy;
+
+	if (!fid) return NULL;
+
+	fid_copy = g_new0 (EwsFolderId, 1);
+	fid_copy->id = g_strdup(fid->id);
+	fid_copy->change_key = g_strdup(fid->change_key);
+	fid_copy->is_distinguished_id = fid->is_distinguished_id;
+
+	return fid_copy;
+}
 void
 e_ews_folder_free_fid (EwsFolderId *fid)
 {
diff --git a/src/server/e-ews-folder.h b/src/server/e-ews-folder.h
index c6d2f17..24b8b7f 100644
--- a/src/server/e-ews-folder.h
+++ b/src/server/e-ews-folder.h
@@ -76,6 +76,7 @@ void		e_ews_folder_set_is_writable (EEwsFolder *folder, gboolean writable);
 EwsFolderType	e_ews_folder_get_folder_type (EEwsFolder *folder);
 void 		e_ews_folder_set_folder_type (EEwsFolder *folder, EwsFolderType folder_type);
 
+EwsFolderId *	e_ews_folder_fid_copy (const EwsFolderId *fid);
 void		e_ews_folder_free_fid (EwsFolderId *fid);
 
 G_END_DECLS



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