[libnet-dbus-perl] 124/335: Added binding for set_destination method on message. Use close instead of disconnect on connections

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit 72fa2a023d6f4605d31a4e58e70fb93423f7dae2
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Sat Oct 15 11:37:32 2005 +0000

    Added binding for set_destination method on message. Use close instead of disconnect on connections
---
 DBus.xs | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/DBus.xs b/DBus.xs
index 2e764e6..7b2221c 100644
--- a/DBus.xs
+++ b/DBus.xs
@@ -612,10 +612,9 @@ DESTROY(con)
         DBusConnection *con;
    CODE:
         PD_DEBUG("Destroying connection %x\n", con);
-        if (dbus_connection_get_is_connected(con)) {
-          dbus_connection_disconnect(con);
-        }
-        dbus_connection_unref(con);
+        dbus_connection_close(con);
+        // XXX do we need this or not ?
+        //dbus_connection_unref(con);
 
 
 MODULE = Net::DBus::Binding::Server		PACKAGE = Net::DBus::Binding::Server
@@ -821,6 +820,11 @@ dbus_message_set_sender(msg, sender);
 	DBusMessage *msg;
         const char *sender;
 
+void
+dbus_message_set_destination(msg, dest);
+	DBusMessage *msg;
+        const char *dest;
+
 MODULE = Net::DBus::Binding::Message::Signal		PACKAGE = Net::DBus::Binding::Message::Signal
 
 PROTOTYPES: ENABLE

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list