[libvirt] [PATCH 3/9] Separate code for encoding outgoing remote message headers

Daniel Veillard veillard at redhat.com
Thu Jul 16 13:08:43 UTC 2009


On Tue, Jul 14, 2009 at 11:18:23AM +0100, Daniel P. Berrange wrote:
> Introduces an API for encoding the header field for outgoing messages
> allowing some duplicated code to be eliminated
[...]
> -    /* Serialise the return header. */
> -    xdrmem_create (&xdr, msg->buffer, sizeof msg->buffer, XDR_ENCODE);

  Heh I didn't know one could use sizeof like that

I will admit I don't follow all the subtleties of xdr_ routines, but
that looks similar.

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list