CamelKeyTable
CamelKeyTable
|
|
Object Hierarchy
GObject
├── CamelKeyTable
╰── CamelPartitionTable
Types and Values
camel_hash_t
typedef guint32 camel_hash_t; /* a hashed key */
struct CamelPartitionKey
struct CamelPartitionKey {
camel_hash_t hashid;
camel_key_t keyid;
};
struct CamelPartitionKeyBlock
struct CamelPartitionKeyBlock {
guint32 used;
struct _CamelPartitionKey keys[(CAMEL_BLOCK_SIZE - 4) / sizeof (struct _CamelPartitionKey)];
};
struct CamelPartitionMap
struct CamelPartitionMap {
camel_hash_t hashid;
camel_block_t blockid;
};
struct CamelPartitionMapBlock
struct CamelPartitionMapBlock {
camel_block_t next;
guint32 used;
struct _CamelPartitionMap partition[(CAMEL_BLOCK_SIZE - 8) / sizeof (struct _CamelPartitionMap)];
};
struct CamelKeyRootBlock
struct CamelKeyRootBlock {
camel_block_t first;
camel_block_t last;
camel_key_t free; /* free list */
};
struct CamelKeyKey
struct CamelKeyKey {
camel_block_t data;
guint offset : 10;
guint flags : 22;
};
struct CamelKeyBlock
struct CamelKeyBlock {
camel_block_t next;
guint32 used;
union {
struct _CamelKeyKey keys[(CAMEL_BLOCK_SIZE - 8) / sizeof (struct _CamelKeyKey)];
gchar keydata[CAMEL_BLOCK_SIZE - 8];
} u;
};
CAMEL_KEY_TABLE_MAX_KEY
#define CAMEL_KEY_TABLE_MAX_KEY (128) /* max size of any key */