[libvirt] [go PATCH 2/2] Add support for virDomainAgentSetResponseTimeout API
Daniel P. Berrangé
berrange at redhat.com
Thu Nov 28 10:42:06 UTC 2019
On Thu, Nov 28, 2019 at 11:30:32AM +0100, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> domain.go | 23 +++++++++++++++++++++++
> domain_compat.h | 14 ++++++++++++++
> domain_wrapper.go | 17 +++++++++++++++++
> domain_wrapper.h | 6 ++++++
> 4 files changed, 60 insertions(+)
>
> diff --git a/domain.go b/domain.go
> index 360659d..7901d8d 100644
> --- a/domain.go
> +++ b/domain.go
> @@ -886,6 +886,14 @@ const (
> DOMAIN_GUEST_INFO_FILESYSTEM = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_FILESYSTEM)
> )
>
> +type DomainAgentSetResponseTimeoutValues int
> +
> +const (
> + VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK)
> + VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT)
> + VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT)
> +)
At the Go level the constants shouldn't have any VIR_ prefix, as
they're already within the 'libvirt' package namespace.
If you strip those then
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list