forked from enlightenment/efl
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:
parent
8cb23c5dfb
commit
b9b14269c8
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue