evolution r36104 - branches/mail-dbus-remoting/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36104 - branches/mail-dbus-remoting/mail
- Date: Wed, 27 Aug 2008 09:10:40 +0000 (UTC)
Author: sragavan
Date: Wed Aug 27 09:10:40 2008
New Revision: 36104
URL: http://svn.gnome.org/viewvc/evolution?rev=36104&view=rev
Log:
Convert camel_ob* signals as function hooks to be called from the respecitve impl.
Modified:
branches/mail-dbus-remoting/mail/camel-object-remote-impl.c
branches/mail-dbus-remoting/mail/camel-object-remote-impl.h
Modified: branches/mail-dbus-remoting/mail/camel-object-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-object-remote-impl.c (original)
+++ branches/mail-dbus-remoting/mail/camel-object-remote-impl.c Wed Aug 27 09:10:40 2008
@@ -28,11 +28,6 @@
#define CAMEL_FOLDER_INTERFACE "org.gnome.evolution.camel.folder"
/* Session */
-static DBusHandlerResult
-dbus_listener_session_handler (DBusConnection *connection,
- DBusMessage *message,
- void *user_data);
-
static void
session_signal_cb (CamelObject *sess, gpointer ev_data, gpointer data)
{
@@ -50,8 +45,8 @@
dbus_connection_flush(dbus);
}
-static DBusHandlerResult
-dbus_listener_session_handler (DBusConnection *connection,
+DBusHandlerResult
+camel_object_session_signal_handler (DBusConnection *connection,
DBusMessage *message,
void *user_data)
{
@@ -97,11 +92,6 @@
}
/* Store */
-static DBusHandlerResult
-dbus_listener_store_handler (DBusConnection *connection,
- DBusMessage *message,
- void *user_data);
-
static char *
hash_store (CamelObject *store)
{
@@ -126,8 +116,8 @@
dbus_connection_flush(dbus);
}
-static DBusHandlerResult
-dbus_listener_store_handler (DBusConnection *connection,
+DBusHandlerResult
+camel_object_store_signal_handler (DBusConnection *connection,
DBusMessage *message,
void *user_data)
{
@@ -174,11 +164,6 @@
/* Folder */
-static DBusHandlerResult
-dbus_listener_folder_handler (DBusConnection *connection,
- DBusMessage *message,
- void *user_data);
-
static char *
hash_folder (CamelObject *obj)
{
@@ -203,8 +188,8 @@
dbus_connection_flush(dbus);
}
-static DBusHandlerResult
-dbus_listener_folder_handler (DBusConnection *connection,
+DBusHandlerResult
+camel_object_folder_signal_handler (DBusConnection *connection,
DBusMessage *message,
void *user_data)
{
@@ -253,7 +238,7 @@
void
camel_object_remote_impl_init ()
{
- /* Do it better */
+ /* Later... these comments no longer needed */
//e_dbus_register_handler (CAMEL_SESSION_OBJECT_PATH, dbus_listener_session_handler, NULL);
//e_dbus_register_handler (CAMEL_STORE_OBJECT_PATH, dbus_listener_store_handler, NULL);
//e_dbus_register_handler (CAMEL_FOLDER_OBJECT_PATH, dbus_listener_folder_handler, NULL);
Modified: branches/mail-dbus-remoting/mail/camel-object-remote-impl.h
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-object-remote-impl.h (original)
+++ branches/mail-dbus-remoting/mail/camel-object-remote-impl.h Wed Aug 27 09:10:40 2008
@@ -7,6 +7,20 @@
#ifndef CAMEL_OBJECT_REMOTE_IMPL_H
#define CAMEL_OBJECT_REMOTE_IMPL_H
+DBusHandlerResult
+camel_object_session_signal_handler (DBusConnection *connection,
+ DBusMessage *message,
+ void *user_data);
+
+DBusHandlerResult
+camel_object_store_signal_handler (DBusConnection *connection,
+ DBusMessage *message,
+ void *user_data);
+
+DBusHandlerResult
+camel_object_folder_signal_handler (DBusConnection *connection,
+ DBusMessage *message,
+ void *user_data);
void
camel_object_remote_impl_init (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]