Re: [PATCH 02/18] Give tny_folder_store_get_folders a refresh parameter



Hi,

This patch will not compile with -DDBC enabled.
In tny_folder_store_refresh_async you'll at least have to remove the

+    g_assert (list);
+    g_assert (TNY_IS_LIST (list));
+    if (query)
+        g_assert (TNY_IS_FOLDER_STORE_QUERY (query));

And also I guess we'll have to replave :

g_assert (TNY_FOLDER_STORE_GET_IFACE (self)->get_folders_async!= NULL);

by

g_assert (TNY_FOLDER_STORE_GET_IFACE (self)->refresh_async!= NULL);


More context:

+void tny_folder_store_refresh_async (TnyFolderStore *self, TnyFolderStoreCallback callback, TnyStatusCallback status_callback, gpointer user_data)
+{
+#ifdef DBC /* require */
+    g_assert (TNY_IS_FOLDER_STORE (self));
+    g_assert (list);
+    g_assert (TNY_IS_LIST (list));
+    if (query)
+        g_assert (TNY_IS_FOLDER_STORE_QUERY (query));
+    g_assert (TNY_FOLDER_STORE_GET_IFACE (self)->get_folders_async!= NULL);
+#endif
+
+    TNY_FOLDER_STORE_GET_IFACE (self)->refresh_async(self, callback, status_callback, user_data);
+
+#ifdef DBC /* ensure */
+#endif
+
+    return;
+}
 
Cheers,

--
Martin



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