[PATCH 06/36] conf: domain: Add helper infrastructure for new connection close callbacks

Pavel Hrdina phrdina at redhat.com
Fri Jan 6 11:26:34 UTC 2023


On Thu, Jan 05, 2023 at 05:29:55PM +0100, Peter Krempa wrote:
> 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 at redhat.com>
> ---
>  src/conf/domain_conf.c   | 13 +++++++++++++
>  src/conf/domain_conf.h   | 25 +++++++++++++++++++++++++
>  src/libvirt_private.syms |  1 +
>  3 files changed, 39 insertions(+)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230106/82dd3ce3/attachment.sig>


More information about the libvir-list mailing list