src/state.h

changeset 55
ba6b8e570062
parent 53
e1693c4b8a0c
child 60
96f3df0b3cbb
     1.1 diff -r 57c6ef81ae81 -r ba6b8e570062 src/state.h
     1.2 --- a/src/state.h	Mon Dec 06 01:43:04 2010 +0000
     1.3 +++ b/src/state.h	Sun Dec 12 23:47:35 2010 +0000
     1.4 @@ -10,6 +10,16 @@
     1.5  #define ROM_SIZE 32768
     1.6  
     1.7  /**
     1.8 + * State error codes
     1.9 + */
    1.10 +typedef enum {
    1.11 +	STATE_E_OK				= 0,	///< Operation succeeded
    1.12 +	STATE_E_BAD_RAMSIZE		= -1,	///< Bad RAM size specified (not a multiple of 512K, or less than 512K)
    1.13 +	STATE_E_NO_MEMORY		= -2,	///< Out of memory while allocating state variables
    1.14 +	STATE_E_ROM_LOAD_FAIL	= -3	///< Error loading ROMs
    1.15 +} STATE_ERR;
    1.16 +
    1.17 +/**
    1.18   * @brief Emulator state storage
    1.19   *
    1.20   * This structure stores the internal state of the emulator.