Functions |
Eldbus_Message_Iter * | eldbus_message_iter_container_new (Eldbus_Message_Iter *iter, int type, const char *contained_signature) |
| Create and append a typed iterator to another iterator.
|
Eina_Bool | eldbus_message_iter_basic_append (Eldbus_Message_Iter *iter, int type,...) |
| Append a basic type into an Eldbus_Iterator.
|
Eina_Bool | eldbus_message_iter_arguments_append (Eldbus_Message_Iter *iter, const char *signature,...) |
| Append an argument into an Eldbus_Message_Iter. For each complete type you need to provide the correspondent value. In case of complex types you need to provide an Eldbus_Message_Iter** to be allocated and then filled in.
|
Eina_Bool | eldbus_message_iter_arguments_vappend (Eldbus_Message_Iter *iter, const char *signature, va_list ap) |
| Set data to Eldbus_Message_Iter. For each complete in signature you need pass the value, in case of complex type a pointer to be allocated a Eldbus_Message_Iter that you need fill and close.
|
Eina_Bool | eldbus_message_iter_fixed_array_append (Eldbus_Message_Iter *iter, int type, const void *array, unsigned int size) |
Eina_Bool | eldbus_message_iter_container_close (Eldbus_Message_Iter *iter, Eldbus_Message_Iter *sub) |
| Closes a container-typed value appended to the message.
|
Eldbus_Message_Iter * | eldbus_message_iter_get (const Eldbus_Message *msg) |
| Get the main Eldbus_Message_Iter from the Eldbus_Message.
|
void | eldbus_message_iter_basic_get (Eldbus_Message_Iter *iter, void *value) |
| Get a basic type from Eldbus_Iterator.
|
char * | eldbus_message_iter_signature_get (Eldbus_Message_Iter *iter) |
| Returns the current signature of a message iterator.
|
Eina_Bool | eldbus_message_iter_next (Eldbus_Message_Iter *iter) |
| Moves the iterator to the next field, if any.
|
Eina_Bool | eldbus_message_iter_get_and_next (Eldbus_Message_Iter *iter, char signature,...) |
| Get a complete type from Eldbus_Message_Iter if is not at the end of iterator and move to next field. Useful to iterate over arrays.
|
Eina_Bool | eldbus_message_iter_fixed_array_get (Eldbus_Message_Iter *iter, int signature, void *value, int *n_elements) |
| Reads a block of fixed-length values from the message iterator.
|
Eina_Bool | eldbus_message_iter_arguments_get (Eldbus_Message_Iter *iter, const char *signature,...) |
| Get data from Eldbus_Message_Iter, for each complete type must have a pointer to store his value, in case of complex type a Eldbus_Message_Iter will be need.
|
Eina_Bool | eldbus_message_iter_arguments_vget (Eldbus_Message_Iter *iter, const char *signature, va_list ap) |
| Get data from Eldbus_Message_Iter, for each complete type must have a pointer to store his value, in case of complex type a Eldbus_Message_Iter will be need.
|
void | eldbus_message_iter_del (Eldbus_Message_Iter *iter) |
| Manually delete the iterator.
|
Create and append a typed iterator to another iterator.
- Deprecated:
- Deprecated since 4.0.
After append data to returned iterator it must be closed calling eldbus_message_iter_container_close().
Container types are for example struct, variant, and array. For variants, the contained_signature should be the type of the single value inside the variant. For structs and dict entries, contained_signature should be NULL; it will be set to whatever types you write into the struct. For arrays, contained_signature should be the type of the array elements.
- Parameters:
-
iter | parent of the new iterator |
type | of iterator (e.g struct, dict, variant or array) |
contained_signature | signature of what iterator will store |
- Returns:
- the new iterator
- Since :
- 3.0
Reads a block of fixed-length values from the message iterator.
- Deprecated:
- Deprecated since 4.0.
Fixed-length values are those basic types that are not string-like, such as integers, bool, double. The returned block will be from the current position in the array until the end of the array.
There is one exception here: although ELDBUS_TYPE_UNIX_FD is considered a 'fixed' type arrays of this type may not be read with this function.
The value argument should be the address of a location to store the returned array. So for int32 it should be a "const dbus_int32_t**" The returned value is by reference and should not be freed.
Because the array is not copied, this function runs in constant time and is fast; it's much preferred over walking the entire array with an iterator.
- Parameters:
-
iter | The message iterator |
signature | |
value | |
n_elements | |
- Returns:
- EINA_TRUE on success, else EINA_FALSE.
- Since :
- 3.0