evolution-data-server r9047 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9047 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- Date: Thu, 26 Jun 2008 04:40:43 +0000 (UTC)
Author: msuman
Date: Thu Jun 26 04:40:42 2008
New Revision: 9047
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9047&view=rev
Log:
Fix for callback signature change.
Modified:
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c
Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c Thu Jun 26 04:40:42 2008
@@ -156,11 +156,12 @@
}
+/* here, there is no point setting 'out' param */
static gboolean
fetch_items_cb (struct mapi_SPropValue_array *array, const mapi_id_t fid, const mapi_id_t mid,
- GSList *streams, GSList *recipients, GSList *attachments, gpointer data)
+ GSList *streams, GSList *recipients, GSList *attachments, gpointer in, gpointer out)
{
- CamelMapiFolder *mapi_folder = CAMEL_MAPI_FOLDER(data);
+ CamelMapiFolder *mapi_folder = CAMEL_MAPI_FOLDER(in);
GSList *slist = mapi_folder->priv->item_list;
long *flags;
struct FILETIME *delivery_date;
@@ -571,9 +572,11 @@
}
-static gpointer
+/* In a fetch_item_callback, the data would be returned with the 'out' param,
+ * while the 'in' param would always be NULL */
+static gboolean
fetch_item_cb (struct mapi_SPropValue_array *array, mapi_id_t fid, mapi_id_t mid,
- GSList *streams, GSList *recipients, GSList *attachments)
+ GSList *streams, GSList *recipients, GSList *attachments, gpointer in, gpointer out)
{
exchange_mapi_debug_property_dump (array);
long *flags;
@@ -613,7 +616,8 @@
printf("%s(%d):%s:Number of Attachments : %d \n", __FILE__, __LINE__, __PRETTY_FUNCTION__, g_slist_length (attachments));
item->attachments = attachments;
- return item;
+ out = item;
+ return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]