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

Pavel Hrdina phrdina at redhat.com
Thu Nov 28 10:30:31 UTC 2019


Signed-off-by: Pavel Hrdina <phrdina at 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




More information about the libvir-list mailing list