]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce helper to help getting correct def for getter functions
authorPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jun 2015 17:04:41 +0000 (19:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jun 2015 13:13:44 +0000 (15:13 +0200)
commit47171cd1a6a62e7e0c9851dcde945aa14973d775
tree1ba3aa0a0efe8d1b4a7aff976ccc1b88ab2b2aa4
parent63aaf69bbe263aae0247b2cf51133854185e9b94
conf: Introduce helper to help getting correct def for getter functions

virDomainObjGetOneDef will help to retrieve the correct definition
pointer from @vm in cases where VIR_DOMAIN_AFFECT_LIVE and
VIR_DOMAIN_AFFECT_CONFIG are mutually exclusive. The function simply
returns the correct pointer. This similarly to virDomainObjGetDefs will
greatly simplify the code.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms