* 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:
parent
65051faa6e
commit
8484b18054
1 changed files with 5 additions and 4 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue