[libvirt] [PATCH v2 1/9] Add function that raises error if domain is not active

Ján Tomko jtomko at redhat.com
Wed Apr 18 08:07:34 UTC 2018


On Tue, Apr 17, 2018 at 10:13:26PM +0000, Clementine Hayat wrote:
>Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
>It calls virDomainObjIsActive, raises error if necessary and returns.
>
>There is a lot of occurence of this pattern and it will save 3 lines on
>each call.
>
>Signed-off-by: Clementine Hayat <clem at lse.epita.fr>
>---
> src/conf/domain_conf.c   | 11 +++++++++++
> src/conf/domain_conf.h   |  2 ++
> src/libvirt_private.syms |  1 +
> 3 files changed, 14 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180418/48620839/attachment-0001.sig>


More information about the libvir-list mailing list