[libnet-dbus-perl] 178/335: Added binding to unregister an object path

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:50 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 2e9352833093697dfec9f69e0593753be8429d23
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Thu Jan 26 19:20:15 2006 +0000

    Added binding to unregister an object path
---
 lib/Net/DBus/Binding/Connection.pm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/lib/Net/DBus/Binding/Connection.pm b/lib/Net/DBus/Binding/Connection.pm
index 0e81c57..46178a2 100644
--- a/lib/Net/DBus/Binding/Connection.pm
+++ b/lib/Net/DBus/Binding/Connection.pm
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
-# $Id: Connection.pm,v 1.6 2006/01/06 15:33:08 dan Exp $
+# $Id: Connection.pm,v 1.7 2006/01/26 19:20:15 dan Exp $
 
 =pod
 
@@ -395,10 +395,25 @@ sub register_object_path {
 
 	&$code($con, Net::DBus::Binding::Message->new(message => $msg));
     };
-
     $self->{connection}->_register_object_path($path, $callback);
 }
 
+=pod
+
+=item $con->unregister_object_path($path)
+
+Unregisters the handler associated with the object path C<$path>. The
+handler would previously have been registered with the C<register_object_path>
+or C<register_fallback> methods.
+
+=cut
+
+sub unregister_object_path {
+    my $self = shift;
+    my $path = shift;
+    $self->{connection}->_unregister_object_path($path);
+}
+
 
 =pod
 

-- 
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