99 * @brief Represents an error code.
1010 */
1111typedef enum {
12- TL_ERROR_NONE = 0 , // no error
13-
14- TL_ERROR_INTERNAL = 10 , // internal error
15- TL_ERROR_NOT_FOUND = 11 , // not found
16- TL_ERROR_NOT_READY = 12 , // not ready
17- TL_ERROR_NOT_IMPLEMENTED = 13 , // not implemented
18- TL_ERROR_NOT_SUPPORTED = 14 , // not supported
19- TL_ERROR_NOT_AVAILABLE = 15 , // not available
20-
21- TL_ERROR_TIMEOUT = 20 , // timeout error
22- TL_ERROR_BUSY = 21 , // busy
23- TL_ERROR_IO = 22 , // I/O error
24- TL_ERROR_OUT_OF_RANGE = 23 , // out of range error
25- TL_ERROR_MEMORY_ALLOCATION = 24 , // memory allocation error
26-
27- TL_ERROR_INIT_FAILED = 30 , // initialization error
12+ TL_ERROR_NONE = 0 , // no error
13+ TL_ERROR_INTERNAL = 10 , // internal error
14+ TL_ERROR_NOT_FOUND = 11 , // not found
15+ TL_ERROR_NOT_READY = 12 , // not ready
16+ TL_ERROR_NOT_IMPLEMENTED = 13 , // not implemented
17+ TL_ERROR_NOT_SUPPORTED = 14 , // not supported
18+ TL_ERROR_NOT_AVAILABLE = 15 , // not available
19+ TL_ERROR_TIMEOUT = 20 , // timeout error
20+ TL_ERROR_BUSY = 21 , // busy
21+ TL_ERROR_IO = 22 , // I/O error
22+ TL_ERROR_OUT_OF_RANGE = 23 , // out of range error
23+ TL_ERROR_MEMORY_ALLOCATION = 24 , // memory allocation error
24+ TL_ERROR_INIT_FAILED = 30 , // initialization error
2825 TL_ERROR_ALREADY_INITIALIZED = 31 , // already initialized
29- TL_ERROR_NOT_INITIALIZED = 32 , // not initialized
30- TL_ERROR_INVALID_ARGUMENT = 33 , // invalid argument
31- TL_ERROR_INVALID_FUNCTION = 34 , // invalid function
32- TL_ERROR_INVALID_INSTANCE = 35 , // invalid instance
33- TL_ERROR_INVALID_SIZE = 36 , // invalid size
34- TL_ERROR_INVALID_TYPE = 37 , // invalid type
35- TL_ERROR_INVALID_VALUE = 38 , // invalid value
26+ TL_ERROR_NOT_INITIALIZED = 32 , // not initialized
27+ TL_ERROR_INVALID_ARGUMENT = 33 , // invalid argument
28+ TL_ERROR_INVALID_FUNCTION = 34 , // invalid function
29+ TL_ERROR_INVALID_INSTANCE = 35 , // invalid instance
30+ TL_ERROR_INVALID_SIZE = 36 , // invalid size
31+ TL_ERROR_INVALID_TYPE = 37 , // invalid type
32+ TL_ERROR_INVALID_VALUE = 38 , // invalid value
3633} TLErrorCode ;
3734
3835/**
@@ -44,7 +41,7 @@ typedef enum {
4441 */
4542typedef struct {
4643 TLErrorCode code ;
47- size_t message_size ;
44+ size_t message_size ;
4845 const char * message ;
4946} TLError ;
5047
0 commit comments