feat(lsm): implement bt remove

This commit is contained in:
Jef Roosens 2023-10-13 11:56:50 +02:00
parent 13e42181a2
commit 96fc645034
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
7 changed files with 135 additions and 26 deletions

View file

@ -6,10 +6,10 @@
#define LSM_MAX_SKIP_SIZE 8
typedef enum lsm_error {
lsm_error_ok = 0,
lsm_error_failed_alloc = 1,
lsm_error_not_found = 2,
lsm_error_already_present = 3
lsm_error_ok = 0,
lsm_error_failed_alloc = 1,
lsm_error_not_found = 2,
lsm_error_already_present = 3
} lsm_error;
/**
@ -29,9 +29,7 @@ typedef struct lsm_string {
* The type of an attribute. Each type is represented as a single bit of a
* 32-bit integer, so they can be easily combined into a bitmap.
*/
typedef enum lsm_attr_type {
lsm_attr_type_entry_type = 1 << 0
} lsm_attr_type;
typedef enum lsm_attr_type { lsm_attr_type_entry_type = 1 << 0 } lsm_attr_type;
/**
* A single attribute associated with an entry