[evolution-ews] Make ews_connection_queue_request() public.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Make ews_connection_queue_request() public.
- Date: Sat, 14 Jul 2012 12:30:59 +0000 (UTC)
commit 07cc41f3012d035e2b87a1d5a20beb4cf06d4e99
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jul 14 08:28:33 2012 -0400
Make ews_connection_queue_request() public.
Rename it to e_ews_connection_queue_request().
So requests can be submitted from outside of e-ews-connection.c.
src/server/e-ews-connection.c | 60 ++++++++++++++++++++--------------------
src/server/e-ews-connection.h | 6 ++++
2 files changed, 36 insertions(+), 30 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 04f4346..8f9037b 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -335,13 +335,13 @@ ews_cancel_request (GCancellable *cancellable,
}
}
-static void
-ews_connection_queue_request (EEwsConnection *cnc,
- ESoapMessage *msg,
- EEwsResponseCallback cb,
- gint pri,
- GCancellable *cancellable,
- GSimpleAsyncResult *simple)
+void
+e_ews_connection_queue_request (EEwsConnection *cnc,
+ ESoapMessage *msg,
+ EEwsResponseCallback cb,
+ gint pri,
+ GCancellable *cancellable,
+ GSimpleAsyncResult *simple)
{
EwsNode *node;
@@ -2806,7 +2806,7 @@ e_ews_connection_sync_folder_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, sync_folder_items_response_cb,
pri, cancellable, simple);
}
@@ -2981,7 +2981,7 @@ e_ews_connection_find_folder_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, find_folder_items_response_cb,
pri, cancellable, simple);
}
@@ -3086,7 +3086,7 @@ e_ews_connection_sync_folder_hierarchy (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, sync_hierarchy_response_cb,
pri, cancellable, simple);
}
@@ -3239,7 +3239,7 @@ e_ews_connection_get_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_items_response_cb,
pri, cancellable, simple);
}
@@ -3429,7 +3429,7 @@ e_ews_connection_delete_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, delete_item_response_cb,
pri, cancellable, simple);
}
@@ -3495,7 +3495,7 @@ e_ews_connection_delete_item (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, delete_item_response_cb,
pri, cancellable, simple);
}
@@ -3642,7 +3642,7 @@ e_ews_connection_update_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_items_response_cb,
pri, cancellable, simple);
}
@@ -3769,7 +3769,7 @@ e_ews_connection_create_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_items_response_cb,
pri, cancellable, simple);
}
@@ -3900,7 +3900,7 @@ e_ews_connection_resolve_names (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, resolve_names_response_cb,
pri, cancellable, simple);
}
@@ -4177,7 +4177,7 @@ e_ews_connection_expand_dl (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, expand_dl_response_cb,
pri, cancellable, simple);
}
@@ -4312,7 +4312,7 @@ e_ews_connection_update_folder (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, update_folder_response_cb,
pri, cancellable, simple);
}
@@ -4444,7 +4444,7 @@ e_ews_connection_move_folder (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, move_folder_response_cb,
pri, cancellable, simple);
}
@@ -4541,7 +4541,7 @@ e_ews_connection_get_folder (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_folder_response_cb,
pri, cancellable, simple);
@@ -4656,7 +4656,7 @@ e_ews_connection_create_folder (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, create_folder_response_cb,
pri, cancellable, simple);
}
@@ -4768,7 +4768,7 @@ e_ews_connection_move_items (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_items_response_cb,
pri, cancellable, simple);
}
@@ -4917,7 +4917,7 @@ e_ews_connection_delete_folder (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, delete_folder_response_cb,
pri, cancellable, simple);
}
@@ -5144,7 +5144,7 @@ e_ews_connection_create_attachments (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, create_attachments_response_cb,
pri, cancellable, simple);
}
@@ -5305,7 +5305,7 @@ e_ews_connection_delete_attachments (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, delete_attachments_response_cb,
pri, cancellable, simple);
}
@@ -5493,7 +5493,7 @@ e_ews_connection_get_attachments (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_attachments_response_cb,
pri, cancellable, simple);
}
@@ -5724,7 +5724,7 @@ e_ews_connection_get_free_busy (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_free_busy_response_cb,
pri, cancellable, simple);
}
@@ -5957,7 +5957,7 @@ e_ews_connection_get_delegate (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_delegate_response_cb,
pri, cancellable, simple);
}
@@ -6068,7 +6068,7 @@ e_ews_connection_get_oof_settings (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, get_oof_settings_response_cb,
pri, cancellable, simple);
}
@@ -6220,7 +6220,7 @@ e_ews_connection_set_oof_settings (EEwsConnection *cnc,
g_simple_async_result_set_op_res_gpointer (
simple, async_data, (GDestroyNotify) async_data_free);
- ews_connection_queue_request (
+ e_ews_connection_queue_request (
cnc, msg, set_oof_settings_response_cb,
pri, cancellable, simple);
diff --git a/src/server/e-ews-connection.h b/src/server/e-ews-connection.h
index fbf0fba..e391c37 100644
--- a/src/server/e-ews-connection.h
+++ b/src/server/e-ews-connection.h
@@ -209,6 +209,12 @@ void e_ews_connection_authenticate (EEwsConnection *cnc,
const gchar *user,
const gchar *passwd,
GError *error);
+void e_ews_connection_queue_request (EEwsConnection *cnc,
+ ESoapMessage *msg,
+ EEwsResponseCallback cb,
+ gint pri,
+ GCancellable *cancellable,
+ GSimpleAsyncResult *simple);
gboolean e_ews_autodiscover_ws_url_sync (CamelEwsSettings *settings,
const gchar *email_address,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]