evolution r36167 - branches/mail-dbus-remoting/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36167 - branches/mail-dbus-remoting/mail
- Date: Thu, 28 Aug 2008 14:50:49 +0000 (UTC)
Author: sragavan
Date: Thu Aug 28 14:50:49 2008
New Revision: 36167
URL: http://svn.gnome.org/viewvc/evolution?rev=36167&view=rev
Log:
Fix undefined funcs with empty code to impl it later and some debugging prints.
Modified:
branches/mail-dbus-remoting/mail/camel-store-remote-impl.c
branches/mail-dbus-remoting/mail/camel-store-remote.c
branches/mail-dbus-remoting/mail/camel-store-remote.h
branches/mail-dbus-remoting/mail/mail-folder-cache.c
branches/mail-dbus-remoting/mail/mail-tools.c
Modified: branches/mail-dbus-remoting/mail/camel-store-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-store-remote-impl.c (original)
+++ branches/mail-dbus-remoting/mail/camel-store-remote-impl.c Thu Aug 28 14:50:49 2008
@@ -120,6 +120,7 @@
folder->full_name);
g_hash_table_insert(folder_hash, folder_hash_key,
folder);
+ printf("Adding to hash %p: %s: %p\n", folder_hash, folder_hash_key, folder);
}
camel_exception_free(ex);
Modified: branches/mail-dbus-remoting/mail/camel-store-remote.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-store-remote.c (original)
+++ branches/mail-dbus-remoting/mail/camel-store-remote.c Thu Aug 28 14:50:49 2008
@@ -19,6 +19,7 @@
DBusError error;
char *err;
char *shash;
+ CamelFolder *folder;
dbus_error_init(&error);
/* Invoke the appropriate dbind call to CamelStoreGetFolder */
@@ -31,8 +32,8 @@
"ssu=>ss", store->object_id, folder_name,
flags, &shash, &err);
- CamelFolder *folder = g_hash_table_lookup(folder_hash, shash);
-
+ folder = g_hash_table_lookup(folder_hash, shash);
+ printf("Back folder %p: %s: %p\n", folder_hash, shash, folder);
return folder;
}
@@ -453,3 +454,12 @@
return name;
}
+
+gint camel_store_get_status_remote (CamelStoreRemote *store)
+{
+ gboolean ret;
+ DBusError error;
+ char *name = NULL;
+ /* Implement it.*/
+ return CAMEL_SERVICE_DISCONNECTED;
+}
Modified: branches/mail-dbus-remoting/mail/camel-store-remote.h
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-store-remote.h (original)
+++ branches/mail-dbus-remoting/mail/camel-store-remote.h Thu Aug 28 14:50:49 2008
@@ -55,5 +55,5 @@
int camel_store_get_url_flags_remote(CamelStoreRemote *store);
char * camel_store_get_service_name_remote (CamelStoreRemote *store, gboolean brief);
-
+gint camel_store_get_status_remote (CamelStoreRemote *store);
#endif
Modified: branches/mail-dbus-remoting/mail/mail-folder-cache.c
==============================================================================
--- branches/mail-dbus-remoting/mail/mail-folder-cache.c (original)
+++ branches/mail-dbus-remoting/mail/mail-folder-cache.c Thu Aug 28 14:50:49 2008
@@ -872,7 +872,7 @@
CamelObjectRemote *store = (CamelObjectRemote *) key;
struct _ping_store_msg *m;
- if (camel_store_remote_get_status (store) != CAMEL_SERVICE_CONNECTED)
+ if (camel_store_get_status_remote (store) != CAMEL_SERVICE_CONNECTED)
return;
m = mail_msg_new (&ping_store_info);
Modified: branches/mail-dbus-remoting/mail/mail-tools.c
==============================================================================
--- branches/mail-dbus-remoting/mail/mail-tools.c (original)
+++ branches/mail-dbus-remoting/mail/mail-tools.c Thu Aug 28 14:50:49 2008
@@ -91,7 +91,7 @@
if (!store)
return NULL;
- if (connect || (camel_store_remote_get_status (store) == CAMEL_SERVICE_CONNECTED))
+ if (connect || (camel_store_get_status_remote (store) == CAMEL_SERVICE_CONNECTED))
trash = camel_store_get_trash_remote (store, ex);
else
trash = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]