emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/dbusbind.c,v


From: Michael Albinus
Subject: [Emacs-diffs] Changes to emacs/src/dbusbind.c,v
Date: Fri, 01 Aug 2008 18:35:10 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Michael Albinus <albinus>       08/08/01 18:35:10

Index: dbusbind.c
===================================================================
RCS file: /sources/emacs/emacs/src/dbusbind.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- dbusbind.c  31 Jul 2008 18:56:15 -0000      1.29
+++ dbusbind.c  1 Aug 2008 18:35:10 -0000       1.30
@@ -1437,28 +1437,31 @@
   /* Read message type, message serial, unique name, object path,
      interface and member from the message.  */
   mtype     = dbus_message_get_type (dmessage);
-  serial    = (mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN ?
-              dbus_message_get_reply_serial (dmessage) :
-              dbus_message_get_serial (dmessage));
+  serial =
+    ((mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN)
+     || (mtype == DBUS_MESSAGE_TYPE_ERROR))
+    ? dbus_message_get_reply_serial (dmessage)
+    : dbus_message_get_serial (dmessage);
   uname     = dbus_message_get_sender (dmessage);
   path      = dbus_message_get_path (dmessage);
   interface = dbus_message_get_interface (dmessage);
   member    = dbus_message_get_member (dmessage);
 
   XD_DEBUG_MESSAGE ("Event received: %s %d %s %s %s %s %s",
-                   (mtype == DBUS_MESSAGE_TYPE_INVALID) ?
-                   "DBUS_MESSAGE_TYPE_INVALID" :
-                   (mtype == DBUS_MESSAGE_TYPE_METHOD_CALL) ?
-                   "DBUS_MESSAGE_TYPE_METHOD_CALL" :
-                   (mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN) ?
-                   "DBUS_MESSAGE_TYPE_METHOD_RETURN" :
-                   (mtype == DBUS_MESSAGE_TYPE_ERROR) ?
-                   "DBUS_MESSAGE_TYPE_METHOD_ERROR" :
-                   "DBUS_MESSAGE_TYPE_METHOD_SIGNAL",
+                   (mtype == DBUS_MESSAGE_TYPE_INVALID)
+                   ? "DBUS_MESSAGE_TYPE_INVALID"
+                   : (mtype == DBUS_MESSAGE_TYPE_METHOD_CALL)
+                   ? "DBUS_MESSAGE_TYPE_METHOD_CALL"
+                   : (mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN)
+                   ? "DBUS_MESSAGE_TYPE_METHOD_RETURN"
+                   : (mtype == DBUS_MESSAGE_TYPE_ERROR)
+                   ? "DBUS_MESSAGE_TYPE_ERROR"
+                   : "DBUS_MESSAGE_TYPE_SIGNAL",
                    serial, uname, path, interface, member,
                    SDATA (format2 ("%s", args, Qnil)));
 
-  if (mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN)
+  if ((mtype == DBUS_MESSAGE_TYPE_METHOD_RETURN)
+      || (mtype == DBUS_MESSAGE_TYPE_ERROR))
     {
       /* Search for a registered function of the message.  */
       key = list2 (bus, make_number (serial));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]