[libnet-dbus-perl] 86/335: Optionaly accept a interface in get_object method
Intrigeri
intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:30 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 6b392a25713565ca81fda64bec38af806bead120
Author: Daniel P. Berrange <dan at berrange.com>
Date: Mon Aug 29 12:38:35 2005 +0000
Optionaly accept a interface in get_object method
---
lib/Net/DBus/RemoteService.pm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/Net/DBus/RemoteService.pm b/lib/Net/DBus/RemoteService.pm
index 3780467..657bb5d 100644
--- a/lib/Net/DBus/RemoteService.pm
+++ b/lib/Net/DBus/RemoteService.pm
@@ -40,8 +40,15 @@ sub get_object {
my $object_path = shift;
unless (defined $self->{objects}->{$object_path}) {
- $self->{objects}->{$object_path} = Net::DBus::RemoteObject->new($self,
- $object_path);
+ if (@_) {
+ my $interface = shift;
+ $self->{objects}->{$object_path} = Net::DBus::RemoteObject->new($self,
+ $object_path,
+ $interface);
+ } else {
+ $self->{objects}->{$object_path} = Net::DBus::RemoteObject->new($self,
+ $object_path);
+ }
}
return $self->{objects}->{$object_path};
}
--
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