* Fixed marshaling of D-Bus dictionary types
git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@8808 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
parent
8484b18054
commit
0084392c53
7 changed files with 47 additions and 27 deletions
|
@ -113,20 +113,20 @@ public:
|
|||
|
||||
int get_array( void* ptr );
|
||||
|
||||
MessageIter new_array( const char* sig );
|
||||
int array_length();
|
||||
|
||||
bool is_array();
|
||||
|
||||
int array_length();
|
||||
|
||||
MessageIter new_dict_entry();
|
||||
|
||||
bool is_dict();
|
||||
|
||||
MessageIter new_array( const char* sig );
|
||||
|
||||
MessageIter new_variant( const char* sig );
|
||||
|
||||
MessageIter new_struct();
|
||||
|
||||
MessageIter new_dict_entry();
|
||||
|
||||
void close_container( MessageIter& container );
|
||||
|
||||
void copy_data( MessageIter& to );
|
||||
|
|
|
@ -295,7 +295,7 @@ inline DBus::MessageIter& operator << ( DBus::MessageIter& iter, const std::vect
|
|||
template<typename K, typename V>
|
||||
inline DBus::MessageIter& operator << ( DBus::MessageIter& iter, const std::map<K,V>& val )
|
||||
{
|
||||
const std::string sig = DBus::type<K>::sig() + DBus::type<V>::sig();
|
||||
const std::string sig = "{" + DBus::type<K>::sig() + DBus::type<V>::sig() + "}";
|
||||
DBus::MessageIter ait = iter.new_array(sig.c_str());
|
||||
|
||||
typename std::map<K,V>::const_iterator mit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue