edbus: add helper function edbus_message_iter_struct_like_to_eina_value()

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81489
This commit is contained in:
José Roberto de Souza 2012-12-20 21:38:15 +00:00 committed by Lucas De Marchi
parent 8cb23c5dfb
commit b9b14269c8
2 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,15 @@
*/
EAPI Eina_Value *edbus_message_to_eina_value(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
/**
* Convert EDBus_Message_Iter of type variant, struct or dict entry to
* Eina_Value.
*
* @param iter Message iterator
* @return Eina_Value of type Eina_Value_Type_Struct
*/
EAPI Eina_Value *edbus_message_iter_struct_like_to_eina_value(const EDBus_Message_Iter *iter);
/**
* Convert Eina_Value to EDBus_Message
*

View File

@ -441,3 +441,10 @@ edbus_message_to_eina_value(const EDBus_Message *msg)
EINA_SAFETY_ON_NULL_RETURN_VAL(iter, NULL);
return _message_iter_struct_to_eina_value(iter);
}
EAPI Eina_Value *
edbus_message_iter_struct_like_to_eina_value(const EDBus_Message_Iter *iter)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(iter, NULL);
return _message_iter_struct_to_eina_value((EDBus_Message_Iter *)iter);
}