Revision df1e608a error.h

b/error.h
17 17
#include <stdbool.h>
18 18

  
19 19
/**
20
 * A class representing internal errors within QEMU.  An error has a string
21
 * typename and optionally a set of named string parameters.
20
 * A class representing internal errors within QEMU.  An error has a ErrorClass
21
 * code and a human message.
22 22
 */
23 23
typedef struct Error Error;
24 24

  
25 25
/**
26
 * Set an indirect pointer to an error given a printf-style format parameter.
27
 * Currently, qerror.h defines these error formats.  This function is not
28
 * meant to be used outside of QEMU.
26
 * Set an indirect pointer to an error given a ErrorClass value and a
27
 * printf-style human message.  This function is not meant to be used outside
28
 * of QEMU.
29 29
 */
30 30
void error_set(Error **err, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(3, 4);
31 31

  

Also available in: Unified diff