meta: rename legacy object module to 'ds'
This commit is contained in:
26
ds/dict.h
Normal file
26
ds/dict.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _B_DICT_H_
|
||||
#define _B_DICT_H_
|
||||
|
||||
#include "object.h"
|
||||
|
||||
#include <blue/core/btree.h>
|
||||
#include <blue/core/queue.h>
|
||||
|
||||
struct b_dict_bucket_item {
|
||||
b_queue_entry bi_entry;
|
||||
char *bi_str;
|
||||
struct b_dsref *bi_value;
|
||||
};
|
||||
|
||||
struct b_dict_bucket {
|
||||
b_btree_node bk_node;
|
||||
uint64_t bk_hash;
|
||||
b_queue bk_items;
|
||||
};
|
||||
|
||||
struct b_dict {
|
||||
struct b_dsref d_base;
|
||||
b_btree d_buckets;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user