On Thu, Nov 28, 2019 at 10:42:06AM +0000, Daniel P. Berrangé wrote:
On Thu, Nov 28, 2019 at 11:30:32AM +0100, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina(a)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(a)redhat.com>
Fixed and pushed, thanks.
Pavel