Skip to content

Unable to Access Throttle Group API in libvirt-go with Backported Support to libvirt 10.0.0

We've backported the throttle group feature from libvirt 11.2.0 to version 10.0.0. While using libvirt-go-module to interact with this API, we're encountering an issue due to a version check that prevents calling the API on versions lower than 11.2.0. Since our 10.0.0 build now includes the feature, is there a way to bypass to override the version check based on the feature rather than specific version?

#if !LIBVIR_CHECK_VERSION(11, 2, 0) setVirError(err, "Function virDomainSetThrottleGroup not available prior to libvirt version 11.2.0");

https://gitlab.com/libvirt/libvirt-go-module/-/blob/master/libvirt_generated_functions_static_domain.go?ref_type=heads#L3733