[libnet-dbus-perl] 163/335: Reverse arguments to Binding::Value to ensure back-compat
Intrigeri
intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:46 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 15e2412237b2dad9513c98869fcb64be133cf0ae
Author: Daniel P. Berrange <dan at berrange.com>
Date: Mon Nov 21 12:47:59 2005 +0000
Reverse arguments to Binding::Value to ensure back-compat
---
lib/Net/DBus.pm | 48 ++++++++++++++++++++++---------------------
lib/Net/DBus/Binding/Value.pm | 6 +++---
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/lib/Net/DBus.pm b/lib/Net/DBus.pm
index 1a3f627..a33e392 100644
--- a/lib/Net/DBus.pm
+++ b/lib/Net/DBus.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: DBus.pm,v 1.20 2005/11/21 11:39:51 dan Exp $
+# $Id: DBus.pm,v 1.21 2005/11/21 12:47:59 dan Exp $
=pod
@@ -551,8 +551,9 @@ Mark a value as being a signed, 32-bit integer.
=cut
sub dbus_int32 {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_INT32);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_INT32,
+ $_[0]);
+
}
=pod
@@ -565,8 +566,8 @@ Mark a value as being an unsigned, 32-bit integer.
sub dbus_uint32 {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_UINT32);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_UINT32,
+ $_[0]);
}
=pod
@@ -580,8 +581,9 @@ Mark a value as being an unsigned, 64-bit integer.
sub dbus_int64 {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_INT64);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_INT64,
+ $_[0]);
+
}
=pod
@@ -595,8 +597,8 @@ Mark a value as being an unsigned, 64-bit integer.
sub dbus_uint64 {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_UINT64);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_UINT64,
+ $_[0]);
}
=pod
@@ -610,8 +612,8 @@ Mark a value as being a double precision IEEE floating point.
sub dbus_double {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_DOUBLE);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_DOUBLE,
+ $_[0]);
}
=pod
@@ -625,8 +627,8 @@ Mark a value as being an unsigned, byte.
sub dbus_byte {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_BYTE);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_BYTE,
+ $_[0]);
}
=pod
@@ -641,8 +643,8 @@ since 'string' is the default data type for any Perl scalar value.
sub dbus_string {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_STRING);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_STRING,
+ $_[0]);
}
=pod
@@ -656,8 +658,8 @@ Mark a value as being an boolean
sub dbus_boolean {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_BOOLEAN);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_BOOLEAN,
+ $_[0]);
}
=pod
@@ -670,8 +672,8 @@ Mark a value as being an array
sub dbus_array {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_ARRAY);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_ARRAY,
+ $_[0]);
}
=pod
@@ -684,8 +686,8 @@ Mark a value as being a structure
sub dbus_struct {
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_STRUCT);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_STRUCT,
+ $_[0]);
}
=pod
@@ -697,8 +699,8 @@ Mark a value as being a dictionary
=cut
sub dbus_dict{
- return Net::DBus::Binding::Value->new($_[0],
- &Net::DBus::Binding::Message::TYPE_DICT_ENTRY);
+ return Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_DICT_ENTRY,
+ $_[0]);
}
=pod
diff --git a/lib/Net/DBus/Binding/Value.pm b/lib/Net/DBus/Binding/Value.pm
index 47f4e46..0d7b5e3 100644
--- a/lib/Net/DBus/Binding/Value.pm
+++ b/lib/Net/DBus/Binding/Value.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: Value.pm,v 1.3 2005/11/21 11:39:51 dan Exp $
+# $Id: Value.pm,v 1.4 2005/11/21 12:47:59 dan Exp $
=pod
@@ -64,12 +64,12 @@ sub new {
sub value {
my $self = shift;
- return $self->[0];
+ return $self->[1];
}
sub type {
my $self = shift;
- return $self->[1];
+ return $self->[0];
}
1;
--
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