| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file OpenJazz.h |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par History: |
| 9 | * - 23rd August 2005: Created OpenJazz.h |
| 10 | * - 31st January 2006: Created level.h from parts of OpenJazz.h |
| 11 | * - 31st January 2006: Created player.h from parts of OpenJazz.h |
| 12 | * - 3rd February 2009: Created menu.h from parts of OpenJazz.h |
| 13 | * - 3rd February 2009: Created file.h from parts of OpenJazz.h |
| 14 | * - 3rd February 2009: Created font.h from parts of OpenJazz.h |
| 15 | * - 4th February 2009: Created palette.h from parts of OpenJazz.h |
| 16 | * - 2nd March 2009: Created network.h from parts of OpenJazz.h |
| 17 | * - 2nd June 2009: Created sound.h from parts of OpenJazz.h |
| 18 | * - 3rd June 2009: Created network.h from parts of OpenJazz.h |
| 19 | * - 13th July 2009: Created controls.h from parts of OpenJazz.h |
| 20 | * - 13th July 2009: Created graphics.h from parts of OpenJazz.h |
| 21 | * - 30th April 2010: Created util.h from parts of OpenJazz.h |
| 22 | * - 30th April 2010: Created loop.h from parts of OpenJazz.h |
| 23 | * - 1st November 2023: Created types.h from parts of OpenJazz.h |
| 24 | * |
| 25 | * @par Licence: |
| 26 | * Copyright (c) 2005-2017 AJ Thomson |
| 27 | * |
| 28 | * OpenJazz is distributed under the terms of |
| 29 | * the GNU General Public License, version 2.0 |
| 30 | * |
| 31 | */ |
| 32 | |
| 33 | |
| 34 | #ifndef _OPENJAZZ_H |
| 35 | #define _OPENJAZZ_H |
| 36 | |
| 37 | #ifndef EXTERN |
| 38 | #define EXTERN extern |
| 39 | #endif |
| 40 | |
| 41 | #include "types.h" |
| 42 | |
| 43 | // Constants |
| 44 | |
| 45 | // Standard string length |
| 46 | #define STRING_LENGTH 32 |
| 47 | |
| 48 | // Return values |
| 49 | #define E_N_OTHER -(0x26) |
| 50 | #define E_N_DISCONNECT -(0x25) |
| 51 | #define E_N_CONNECT -(0x24) |
| 52 | #define E_N_ADDRESS -(0x23) |
| 53 | #define E_N_LISTEN -(0x22) |
| 54 | #define E_N_BIND -(0x21) |
| 55 | #define E_N_SOCKET -(0x20) |
| 56 | #define E_DATA -(0x15) |
| 57 | #define E_VERSION -(0x14) |
| 58 | #define E_TIMEOUT -(0x13) |
| 59 | #define E_DEMOTYPE -(0x12) |
| 60 | #define E_FILE -(0x11) |
| 61 | #define E_VIDEO -(0x10) |
| 62 | #define E_LOAD0 -(0x0F) |
| 63 | #define E_LOAD1 -(0x0E) |
| 64 | #define E_LOAD2 -(0x0D) |
| 65 | #define E_LOAD3 -(0x0C) |
| 66 | #define E_RETURN -(0x02) |
| 67 | #define E_QUIT -(0x01) |
| 68 | |
| 69 | #define E_NONE 0 |
| 70 | |
| 71 | #define MAX_PALETTE_COLORS 256 |
| 72 | |
| 73 | #endif |