refactor(lsm): switch to uint8_t attr types; refactor disk code

This commit is contained in:
Jef Roosens 2023-11-08 13:42:46 +01:00
parent b5fc3a3612
commit 35c301955f
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 84 additions and 96 deletions

View file

@ -18,10 +18,10 @@ typedef struct lander_ctx {
uint64_t remaining_data;
} lander_ctx;
typedef enum lander_attr_type : uint64_t {
lander_attr_type_entry_type = 1 << 0,
lander_attr_type_content_type = 1 << 1,
lander_attr_type_url = 1 << 2,
typedef enum lander_attr_type : uint8_t {
lander_attr_type_entry_type = 0,
lander_attr_type_content_type = 1,
lander_attr_type_url = 2,
} lander_attr_type;
typedef enum lander_entry_type {