aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl-errors.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-04-20 18:58:00 +0200
committerMattias Andrée <maandree@kth.se>2020-04-20 18:58:00 +0200
commitda8b1c1d1baafb9cf4a0cc9a88362f161f8d1319 (patch)
tree0fb0676b127996064ccb75b695e9aaf9657ce9f1 /libaxl-errors.h
downloadlibaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.gz
libaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.bz2
libaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libaxl-errors.h')
-rw-r--r--libaxl-errors.h202
1 files changed, 202 insertions, 0 deletions
diff --git a/libaxl-errors.h b/libaxl-errors.h
new file mode 100644
index 0000000..c1b8a92
--- /dev/null
+++ b/libaxl-errors.h
@@ -0,0 +1,202 @@
+/* See LICENSE file for copyright and license details. */
+
+#define LIBAXL_ERROR 0
+
+struct libaxl_error_request {
+#define LIBAXL_ERROR_REQUEST 1
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_value {
+#define LIBAXL_ERROR_VALUE 2
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_window {
+#define LIBAXL_ERROR_WINDOW 3
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_pixmap {
+#define LIBAXL_ERROR_PIXMAP 4
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_atom {
+#define LIBAXL_ERROR_ATOM 5
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_cursor {
+#define LIBAXL_ERROR_CURSOR 6
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_font {
+#define LIBAXL_ERROR_FONT 7
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_match {
+#define LIBAXL_ERROR_MATCH 8
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_drawable {
+#define LIBAXL_ERROR_DRAWABLE 9
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_access {
+#define LIBAXL_ERROR_ACCESS 10
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_alloc {
+#define LIBAXL_ERROR_ALLOC 11
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_colormap {
+#define LIBAXL_ERROR_COLORMAP 12
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_gcontext {
+#define LIBAXL_ERROR_GCONTEXT 13
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_id_choice {
+#define LIBAXL_ERROR_ID_CHOICE 14
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t bad_resource_id;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_name {
+#define LIBAXL_ERROR_NAME 15
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_length {
+#define LIBAXL_ERROR_LENGTH 16
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+struct libaxl_error_implementation {
+#define LIBAXL_ERROR_IMPLEMENTATION 17
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __unused1;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t __unused[21];
+};
+
+union libaxl_error {
+ struct {
+ uint8_t __zero;
+ uint8_t code;
+ uint16_t sequence_number;
+ uint32_t __detail;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ };
+#include "libaxl-errors-structs.h"
+};