[libvirt] [go PATCH 1/2] Add VIR_FROM_BPF error constant

Pavel Hrdina posted 2 patches 6 years, 2 months ago
[libvirt] [go PATCH 1/2] Add VIR_FROM_BPF error constant
Posted by Pavel Hrdina 6 years, 2 months ago
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 error.go       | 3 +++
 error_compat.h | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/error.go b/error.go
index d6b02e0..4b057fb 100644
--- a/error.go
+++ b/error.go
@@ -596,6 +596,9 @@ const (
 
 	// Error from TPM
 	FROM_TPM = ErrorDomain(C.VIR_FROM_TPM)
+
+	// Error from BPF
+	FROM_BPF = ErrorDomain(C.VIR_FROM_BPF)
 )
 
 type Error struct {
diff --git a/error_compat.h b/error_compat.h
index 6727a0d..0383925 100644
--- a/error_compat.h
+++ b/error_compat.h
@@ -207,4 +207,10 @@
 #define VIR_FROM_TPM 70
 #endif
 
+/* 5.10.0 */
+
+#ifndef VIR_FROM_BPF
+#define VIR_FROM_BPF 71
+#endif
+
 #endif /* LIBVIRT_GO_ERROR_COMPAT_H__ */
-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [go PATCH 1/2] Add VIR_FROM_BPF error constant
Posted by Daniel P. Berrangé 6 years, 2 months ago
On Thu, Nov 28, 2019 at 11:30:31AM +0100, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
>  error.go       | 3 +++
>  error_compat.h | 6 ++++++
>  2 files changed, 9 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange@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 :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list