]> git.proxmox.com Git - qemu.git/blobdiff - error.h
Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging
[qemu.git] / error.h
diff --git a/error.h b/error.h
index 6361f407fdd263958b94acf6d7c141359d63278c..45ff6c1ffe25e77ac1b59217914fa13bf9ca6a99 100644 (file)
--- a/error.h
+++ b/error.h
@@ -34,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.
  */