[Libvir] [PATCH] deep copy dom structure
Richard W.M. Jones
rjones at redhat.com
Mon Mar 31 14:45:37 UTC 2008
On Mon, Mar 31, 2008 at 03:39:06PM +0100, Daniel P. Berrange wrote:
> bindings. IMHO, we should just mark them as deprecated in the API docs &
> tell people not to use them. Note, we don't even have the virStoragePoolPtr
> or virStorageVolPtr objects in the error either.
Patch attached.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
-------------- next part --------------
Index: include/libvirt/virterror.h
===================================================================
RCS file: /data/cvs/libvirt/include/libvirt/virterror.h,v
retrieving revision 1.35
diff -u -p -r1.35 virterror.h
--- include/libvirt/virterror.h 21 Mar 2008 15:03:37 -0000 1.35
+++ include/libvirt/virterror.h 31 Mar 2008 14:45:47 -0000
@@ -72,14 +72,14 @@ struct _virError {
int domain; /* What part of the library raised this error */
char *message;/* human-readable informative error message */
virErrorLevel level;/* how consequent is the error */
- virConnectPtr conn; /* the connection if available */
- virDomainPtr dom; /* the domain if available */
+ virConnectPtr conn; /* deprecated - do not use */
+ virDomainPtr dom; /* deprecated - do not use */
char *str1; /* extra string information */
char *str2; /* extra string information */
char *str3; /* extra string information */
int int1; /* extra number information */
int int2; /* extra number information */
- virNetworkPtr net; /* the network if available */
+ virNetworkPtr net; /* deprecated - do not use */
};
/**
More information about the libvir-list
mailing list