]> git.proxmox.com Git - qemu.git/blobdiff - error.h
i82378/i82374: Do not create DMA controller twice
[qemu.git] / error.h
diff --git a/error.h b/error.h
index 0f92a6f570d07f94654fc5b902ca19534d8db5bc..45ff6c1ffe25e77ac1b59217914fa13bf9ca6a99 100644 (file)
--- a/error.h
+++ b/error.h
@@ -12,6 +12,7 @@
 #ifndef ERROR_H
 #define ERROR_H
 
+#include "compiler.h"
 #include <stdbool.h>
 
 /**
@@ -33,6 +34,11 @@ void error_set(Error **err, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
  */
 bool error_is_set(Error **err);
 
+/**
+ * Returns an exact copy of the error passed as an argument.
+ */
+Error *error_copy(const Error *err);
+
 /**
  * Get a human readable representation of an error object.
  */