evolution r36088 - branches/mail-dbus-remoting/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36088 - branches/mail-dbus-remoting/mail
- Date: Tue, 26 Aug 2008 19:09:36 +0000 (UTC)
Author: sragavan
Date: Tue Aug 26 19:09:35 2008
New Revision: 36088
URL: http://svn.gnome.org/viewvc/evolution?rev=36088&view=rev
Log:
Fix lots of bug in it.
Modified:
branches/mail-dbus-remoting/mail/camel-store-remote-impl.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 Tue Aug 26 19:09:35 2008
@@ -123,7 +123,7 @@
camel_exception_free(ex);
dbus_message_append_args(reply, DBUS_TYPE_STRING,
- folder_hash_key, DBUS_TYPE_STRING, err,
+ &folder_hash_key, DBUS_TYPE_STRING, &err,
DBUS_TYPE_INVALID);
g_free(folder_hash_key);
g_free(err);
@@ -379,7 +379,7 @@
store = g_hash_table_lookup(store_hash, store_hash_key);
mode = store->mode;
- dbus_message_append_args(reply, DBUS_TYPE_UINT32, mode,
+ dbus_message_append_args(reply, DBUS_TYPE_UINT32, &mode,
DBUS_TYPE_INVALID);
} else if (!g_strcmp0(method, "camel_store_get_flags")) {
char *store_hash_key;
@@ -392,7 +392,7 @@
store = g_hash_table_lookup(store_hash, store_hash_key);
flags = store->flags;
- dbus_message_append_args(reply, DBUS_TYPE_UINT32, flags,
+ dbus_message_append_args(reply, DBUS_TYPE_UINT32, &flags,
DBUS_TYPE_INVALID);
} else if (!g_strcmp0(method, "camel_store_set_flags")) {
char *store_hash_key;
@@ -418,7 +418,8 @@
store = g_hash_table_lookup(store_hash, store_hash_key);
store->mode = mode;
- }
+ } else
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
dbus_connection_send(connection, reply, NULL);
dbus_message_unref(reply);
@@ -430,7 +431,6 @@
void camel_store_remote_impl_init()
{
store_setup = TRUE;
- store_hash = g_hash_table_new(g_str_hash, g_str_equal);
folder_hash = g_hash_table_new(g_str_hash, g_str_equal);
e_dbus_register_handler(CAMEL_STORE_OBJECT_PATH,
dbus_listener_message_handler, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]