* Marshallers and unmarshallers for byte arrays were using the wrong D-Bus type code
git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@9487 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
parent
7835d90bdc
commit
47150044cf
1 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ inline DBus::MessageIter& operator << ( DBus::MessageIter& iter, const std::vect
|
|||
template<>
|
||||
inline DBus::MessageIter& operator << ( DBus::MessageIter& iter, const std::vector<DBus::Byte>& val )
|
||||
{
|
||||
iter.append_array('b', &val.front(), val.size());
|
||||
iter.append_array('y', &val.front(), val.size());
|
||||
return iter;
|
||||
}
|
||||
|
||||
|
@ -444,7 +444,7 @@ inline DBus::MessageIter& operator >> ( DBus::MessageIter& iter, std::vector<DBu
|
|||
if(!iter.is_array())
|
||||
throw DBus::ErrorInvalidArgs("array expected");
|
||||
|
||||
if(iter.array_type() != 'b')
|
||||
if(iter.array_type() != 'y')
|
||||
throw DBus::ErrorInvalidArgs("byte-array expected");
|
||||
|
||||
val.reserve(iter.array_length());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue