[Libvir] [PATCH] Remote 2.5/8: Export virGetDomain and virGetNetwork

Richard W.M. Jones rjones at redhat.com
Sat May 5 11:00:49 UTC 2007


OK so this is step 2.5 out of 8 ... it wasn't part of the original plan.

2.5 Export virGetDomain and virGetNetwork
-----------------------------------------

M src/libvirt_sym.version
M src/hash.c
M src/internal.h

This patch exports virGetDomain and virGetNetwork functions as 
"internal" functions (__virGetDomain and __virGetNetwork) for use by the 
remote daemon.

The use is as follows: client needs to invoke a function such as 
virDomainSuspend (virDomainPtr dom).  In order to do this it has to send 
a reference to "dom" over the wire to the server, which it does by 
encoding a remote_nonnull_domain XDR object (basically the name and 
UUID).  On the server side we use virGetDomain to pull out the 
corresponding virDomainPtr from the hash associated with the connection.

Rich.

-- 
Emerging Technologies, Red Hat  http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF     Mobile: +44 7866 314 421

Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-remote-2.5of8-20070505.patch
Type: text/x-patch
Size: 2558 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/b5d5fafd/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070505/b5d5fafd/attachment-0003.bin>


More information about the libvir-list mailing list