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(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/