]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: domain: Add helper infrastructure for new connection close callbacks
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Jul 2022 12:02:18 +0000 (14:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jan 2023 14:27:53 +0000 (15:27 +0100)
commit2cb13113c29a467909b180d6e9d2867a34904137
tree40f827225188ddcdbb80cf09a8f79efdcb84464c
parente88593ba396bab549427da13be2a155967c960b4
conf: domain: Add helper infrastructure for new connection close callbacks

The new connect close callbacks for domains will be represented by a
virObject associated with the domain object itself.

To simplify handling the pointer to the close callback data will be done
by an immutable pointer allocated directly when allocating the
corresponding virDomainObj struct.

This patch adds the 'closecallbacks' field to virDomainObj and a
corresponding callback to allocate it into virDomainXMLOption.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms