diff options
author | David Robillard <d@drobilla.net> | 2019-09-07 14:16:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-07 14:40:39 +0200 |
commit | dc9f1d852d3fba8ddcf7bb535810ad384900fe06 (patch) | |
tree | b3ea2e2b5be850fa3b42c476ae03f04d960b0433 /pugl/pugl.h | |
parent | 7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf (diff) | |
download | pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.tar.gz pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.tar.bz2 pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.zip |
Clean up error handling
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 580e9dc..067d780 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -80,13 +80,16 @@ typedef void* PuglHandle; Return status code. */ typedef enum { - PUGL_SUCCESS, - PUGL_FAILURE, - PUGL_ERR_UNKNOWN, - PUGL_ERR_CREATE_WINDOW, - PUGL_ERR_SET_FORMAT, - PUGL_ERR_CREATE_CONTEXT, - PUGL_ERR_UNSUPPORTED_TYPE, + PUGL_SUCCESS, /**< Success */ + PUGL_FAILURE, /**< Non-fatal failure */ + PUGL_UNKNOWN_ERROR, /**< Unknown system error */ + PUGL_BAD_BACKEND, /**< Invalid or missing backend */ + PUGL_BACKEND_FAILED, /**< Backend initialisation failed */ + PUGL_REGISTRATION_FAILED, /**< Window class registration failed */ + PUGL_CREATE_WINDOW_FAILED, /**< Window creation failed */ + PUGL_SET_FORMAT_FAILED, /**< Failed to set pixel format */ + PUGL_CREATE_CONTEXT_FAILED, /**< Failed to create drawing context */ + PUGL_UNSUPPORTED_TYPE, /**< Unsupported data type */ } PuglStatus; /** |