edbus: do not use dbus_signature_iter_get_signature in edbus_message_iter_arguments_vget
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 17 Dec 2012 18:24:23 +0000 (18:24 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 17 Dec 2012 18:24:23 +0000 (18:24 +0000)
commit7167295f04a39ba426adcbb97113b98252d66051
treefb8a0ddd782fb9bcc883ed885ea4136da1337102
parent4b1a4775c6d8b5dca1112efdf5ff2e38df6a0d55
edbus: do not use dbus_signature_iter_get_signature in edbus_message_iter_arguments_vget

we are only interested in the first char of the signature so we can use
dbus_signature_iter_get_current_type and:

a) avoid the allocation of the signature for each complete type
b) simplify the check for struct and dict, since *_get_current_type()
   does TheRightThing (TM)

This also rename some variables to clarify the new semantics:

 iter_type -> iter
 sig_type  -> sig_iter

SVN revision: 81169
src/lib/edbus_message.c