Commit 6716ded2 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé

Add new error constants for checkpoints

Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
parent f615e01a
......@@ -362,6 +362,15 @@ const (
// Requested nwfilter binding does not exist
ERR_NO_NWFILTER_BINDING = ErrorNumber(C.VIR_ERR_NO_NWFILTER_BINDING)
// invalid domain checkpoint
ERR_INVALID_DOMAIN_CHECKPOINT = ErrorNumber(C.VIR_ERR_INVALID_DOMAIN_CHECKPOINT)
// domain checkpoint not found
ERR_NO_DOMAIN_CHECKPOINT = ErrorNumber(C.VIR_ERR_NO_DOMAIN_CHECKPOINT)
// domain backup job id not found *
ERR_NO_DOMAIN_BACKUP = ErrorNumber(C.VIR_ERR_NO_DOMAIN_BACKUP)
)
type ErrorDomain int
......@@ -572,6 +581,9 @@ const (
// Error from firewalld
FROM_FIREWALLD = ErrorDomain(C.VIR_FROM_FIREWALLD)
// Error from domain checkpoint
FROM_DOMAIN_CHECKPOINT = ErrorDomain(C.VIR_FROM_DOMAIN_CHECKPOINT)
)
type Error struct {
......
......@@ -169,4 +169,22 @@
#define VIR_FROM_FIREWALLD 68
#endif
/* 5.2.0 */
#ifndef VIR_ERR_INVALID_DOMAIN_CHECKPOINT
#define VIR_ERR_INVALID_DOMAIN_CHECKPOINT 102
#endif
#ifndef VIR_ERR_NO_DOMAIN_CHECKPOINT
#define VIR_ERR_NO_DOMAIN_CHECKPOINT 103
#endif
#ifndef VIR_ERR_NO_DOMAIN_BACKUP
#define VIR_ERR_NO_DOMAIN_BACKUP 104
#endif
#ifndef VIR_FROM_DOMAIN_CHECKPOINT
#define VIR_FROM_DOMAIN_CHECKPOINT 69
#endif
#endif /* LIBVIRT_GO_ERROR_COMPAT_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment