core: add ringbuffer data structure
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <blue/core/misc.h>
|
||||
|
||||
#define B_OK(status) ((status) == B_SUCCESS)
|
||||
#define B_OK(status) ((enum b_status)((uintptr_t)(status)) == B_SUCCESS)
|
||||
#define B_ERR(status) ((status) != B_SUCCESS)
|
||||
|
||||
typedef enum b_status {
|
||||
@@ -16,14 +16,18 @@ typedef enum b_status {
|
||||
B_ERR_BAD_STATE,
|
||||
B_ERR_NO_ENTRY,
|
||||
B_ERR_NO_DATA,
|
||||
B_ERR_NO_SPACE,
|
||||
B_ERR_UNKNOWN_FUNCTION,
|
||||
B_ERR_BAD_FORMAT,
|
||||
B_ERR_IO_FAILURE,
|
||||
B_ERR_IS_DIRECTORY,
|
||||
B_ERR_NOT_DIRECTORY,
|
||||
B_ERR_PERMISSION_DENIED,
|
||||
B_ERR_BUSY,
|
||||
B_ERR_COMPRESSION_FAILURE,
|
||||
} b_status;
|
||||
|
||||
BLUE_API const char *b_status_to_string(b_status status);
|
||||
BLUE_API const char *b_status_description(b_status status);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user