]> Git Repo - qemu.git/blobdiff - error.h
convert net_client_init() to OptsVisitor
[qemu.git] / error.h
diff --git a/error.h b/error.h
index 6361f407fdd263958b94acf6d7c141359d63278c..3d9d96def05e5a1991a5434ef03e31d289e6aa86 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.
  */
@@ -52,7 +57,7 @@ void error_set_field(Error *err, const char *field, const char *value);
 /**
  * Propagate an error to an indirect pointer to an error.  This function will
  * always transfer ownership of the error reference and handles the case where
- * dst_err is NULL correctly.
+ * dst_err is NULL correctly.  Errors after the first are discarded.
  */
 void error_propagate(Error **dst_err, Error *local_err);
 
This page took 0.024318 seconds and 4 git commands to generate.