summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-06-10 19:04:09 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-06-10 20:01:49 -0700
commit8e5431ecd4ce32a8f16969b98c53440eb8208b15 (patch)
tree257f5f2de0e5e7a04c62bbd6325433adeeda090b /include
parentefbec0a18e132c557ad948d7a9b2f03a2de987f4 (diff)
include: Rename error enums
For consistency, rename each token in `enum waffle_error` with the prefix WAFFLE_ERROR. The exception is WAFFLE_NO_ERROR, which is not renamed. This changes follows the precedent of Wayland, and makes it much easier to grep for error cases. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/waffle/waffle_error.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/waffle/waffle_error.h b/include/waffle/waffle_error.h
index 45284c6..3442d21 100644
--- a/include/waffle/waffle_error.h
+++ b/include/waffle/waffle_error.h
@@ -108,31 +108,31 @@ enum waffle_error {
/// A terrible thing has happened. The behavior of all future waffle
/// calls is undefined. You should clean up and exit as soon as possible.
- WAFFLE_FATAL_ERROR = 0x01,
+ WAFFLE_ERROR_FATAL = 0x01,
/// @brief Something went wrong, but waffle lacks an error code for it.
///
/// This is usually emitted when an underlying native call, such as
/// XOpenDisplay(), fails for an unknown reason.
- WAFFLE_UNKNOWN_ERROR = 0x02,
+ WAFFLE_ERROR_UNKNOWN = 0x02,
/// @brief You've found a bug in waffle.
- WAFFLE_INTERNAL_ERROR = 0x03,
+ WAFFLE_ERROR_INTERNAL = 0x03,
- WAFFLE_OUT_OF_MEMORY = 0x04,
+ WAFFLE_ERROR_BAD_ALLOC = 0x04,
- WAFFLE_NOT_INITIALIZED = 0x05,
- WAFFLE_ALREADY_INITIALIZED = 0x06,
- WAFFLE_BAD_ATTRIBUTE = 0x08,
- WAFFLE_BAD_PARAMETER = 0x10,
+ WAFFLE_ERROR_NOT_INITIALIZED = 0x05,
+ WAFFLE_ERROR_ALREADY_INITIALIZED = 0x06,
+ WAFFLE_ERROR_BAD_ATTRIBUTE = 0x08,
+ WAFFLE_ERROR_BAD_PARAMETER = 0x10,
/// @brief You passed objects to waffle that belong to different displays.
- WAFFLE_BAD_DISPLAY_MATCH = 0x11,
+ WAFFLE_ERROR_BAD_DISPLAY_MATCH = 0x11,
/// @brief Requested action is unsupported on the current platform.
///
/// For example, on GLX it is not possible to create an OpenGL ES1 context.
- WAFFLE_UNSUPPORTED_ON_PLATFORM = 0x12,
+ WAFFLE_ERROR_UNSUPPORTED = 0x12,
};
#ifdef __cplusplus