[libvirt] [PATCH 5/6] Introduce alternate way to encode/decode arrays in DBus messages

Michal Privoznik mprivozn at redhat.com
Thu Mar 20 17:15:48 UTC 2014


On 20.03.2014 13:28, Daniel P. Berrange wrote:
> Currently the DBus helper APIs require the values for an array
> to be passed inline in the variadic argument list. This change
> introduces support for passing arrays using a pointer to a plain
> C array of the basic type. This is of particular benefit for
> decoding messages when you don't know how many array elements
> are being received.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>   src/util/virdbus.c  | 121 ++++++++++++++++++++++++++++++++++++++++++++++------
>   tests/virdbustest.c |  93 ++++++++++++++++++++++++++++++++++++++++
>   2 files changed, 201 insertions(+), 13 deletions(-)

Nice, we have a test too!

ACK

Michal




More information about the libvir-list mailing list