Home | History | Annotate | Download | only in qapi

Lines Matching defs:Error

2  * QEMU Error Objects
20 * A class representing internal errors within QEMU. An error has a ErrorClass
23 typedef struct Error Error;
26 * Set an indirect pointer to an error given a ErrorClass value and a
30 void error_set(Error **err, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(3, 4);
33 * Set an indirect pointer to an error given a ErrorClass value and a
37 void error_set_errno(Error **err, int os_error, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(4, 5);
41 * Set an indirect pointer to an error given a ErrorClass value and a
45 void error_set_win32(Error **err, int win32_err, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(4, 5);
49 * Same as error_set(), but sets a generic error
63 void error_setg_file_open(Error **errp, int os_errno, const char *filename);
66 * Returns true if an indirect pointer to an error is pointing to a valid
67 * error object.
69 bool error_is_set(Error **err);
72 * Get the error class of an error object.
74 ErrorClass error_get_class(const Error *err);
77 * Returns an exact copy of the error passed as an argument.
79 Error *error_copy(const Error *err);
82 * Get a human readable representation of an error object.
84 const char *error_get_pretty(Error *err);
87 * Propagate an error to an indirect pointer to an error. This function will
88 * always transfer ownership of the error reference and handles the case where
91 void error_propagate(Error **dst_err, Error *local_err);
94 * Free an error object.
96 void error_free(Error *err);