[evolution-kolab/ek-wip-porting] CamelIMAPXServer: one more function for "friend" API
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-porting] CamelIMAPXServer: one more function for "friend" API
- Date: Thu, 8 Mar 2012 18:36:01 +0000 (UTC)
commit 67f5561c482c50a8c46c55906db5d68d161755f5
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Mar 8 19:32:42 2012 +0100
CamelIMAPXServer: one more function for "friend" API
* exporting the imapx_command_run_sync() CamelIMAPXServer
function for use in CamelIMAPXExtdServer
* there's a modified dupe of imapx_command_run() in
CamelIMAPXExtdServer as part of the imapx_untagged()
code path, we might be using this function instead
(needs further thoughts)
.../providers/imapx/camel-imapx-server-friend.h | 6 ++++++
src/camel/providers/imapx/camel-imapx-server.c | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server-friend.h b/src/camel/providers/imapx/camel-imapx-server-friend.h
index c9a3a0d..b158115 100644
--- a/src/camel/providers/imapx/camel-imapx-server-friend.h
+++ b/src/camel/providers/imapx/camel-imapx-server-friend.h
@@ -96,6 +96,12 @@ camel_imapx_server_command_start (CamelIMAPXServer *self,
GError **err);
gboolean
+camel_imapx_server_command_run_sync (CamelIMAPXServer *self,
+ CamelIMAPXCommand *ic,
+ GCancellable *cancellable,
+ GError **err);
+
+gboolean
camel_imapx_server_connect_to_server_process (CamelIMAPXServer *self,
const gchar *cmd,
GError **err);
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index 7f42cc0..4081542 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -6490,6 +6490,23 @@ camel_imapx_server_command_start (CamelIMAPXServer *self,
}
gboolean
+camel_imapx_server_command_run_sync (CamelIMAPXServer *self,
+ CamelIMAPXCommand *ic,
+ GCancellable *cancellable,
+ GError **err)
+{
+ g_assert (CAMEL_IS_IMAPX_SERVER (self));
+ g_assert (ic != NULL);
+ /* cancellable may be NULL */
+ g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
+
+ return imapx_command_run_sync (self,
+ ic,
+ cancellable,
+ err);
+}
+
+gboolean
camel_imapx_server_connect_to_server_process (CamelIMAPXServer *self,
const gchar *cmd,
GError **err)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]