* Fixed (un)marshaling of boolean values

git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@8792 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
pdurante 2006-12-08 20:40:49 +00:00
parent 65051faa6e
commit 8484b18054

View file

@ -86,14 +86,15 @@ unsigned char MessageIter::get_byte()
bool MessageIter::append_bool( bool b ) bool MessageIter::append_bool( bool b )
{ {
return append_basic(DBUS_TYPE_BOOLEAN, &b); dbus_bool_t db = b;
return append_basic(DBUS_TYPE_BOOLEAN, &db);
} }
bool MessageIter::get_bool() bool MessageIter::get_bool()
{ {
bool b; dbus_bool_t db;
get_basic(DBUS_TYPE_BOOLEAN, &b); get_basic(DBUS_TYPE_BOOLEAN, &db);
return b; return (bool)db;
} }
bool MessageIter::append_int16( signed short i ) bool MessageIter::append_int16( signed short i )