|
Postfix3.3.1
|
#include <sys_defs.h>#include <string.h>#include "mymalloc.h"#include "msg.h"#include "binhash.h"マクロ定義 | |
| #define | binhash_link(table, elm) |
| #define | KEY_EQ(x, y, l) (((unsigned char *) x)[0] == ((unsigned char *) y)[0] && memcmp(x,y,l) == 0) |
関数 | |
| BINHASH * | binhash_create (ssize_t size) |
| BINHASH_INFO * | binhash_enter (BINHASH *table, const void *key, ssize_t key_len, void *value) |
| void * | binhash_find (BINHASH *table, const void *key, ssize_t key_len) |
| BINHASH_INFO * | binhash_locate (BINHASH *table, const void *key, ssize_t key_len) |
| void | binhash_delete (BINHASH *table, const void *key, ssize_t key_len, void(*free_fn)(void *)) |
| void | binhash_free (BINHASH *table, void(*free_fn)(void *)) |
| void | binhash_walk (BINHASH *table, void(*action)(BINHASH_INFO *, void *), void *ptr) |
| BINHASH_INFO ** | binhash_list (BINHASH *table) |
| #define binhash_link | ( | table, | |
| elm | |||
| ) |
| #define KEY_EQ | ( | x, | |
| y, | |||
| l | |||
| ) | (((unsigned char *) x)[0] == ((unsigned char *) y)[0] && memcmp(x,y,l) == 0) |
| void binhash_delete | ( | BINHASH * | table, |
| const void * | key, | ||
| ssize_t | key_len, | ||
| void(*)(void *) | free_fn | ||
| ) |
| BINHASH_INFO* binhash_enter | ( | BINHASH * | table, |
| const void * | key, | ||
| ssize_t | key_len, | ||
| void * | value | ||
| ) |
| void* binhash_find | ( | BINHASH * | table, |
| const void * | key, | ||
| ssize_t | key_len | ||
| ) |
| BINHASH_INFO** binhash_list | ( | BINHASH * | table | ) |
| BINHASH_INFO* binhash_locate | ( | BINHASH * | table, |
| const void * | key, | ||
| ssize_t | key_len | ||
| ) |
| void binhash_walk | ( | BINHASH * | table, |
| void(*)(BINHASH_INFO *, void *) | action, | ||
| void * | ptr | ||
| ) |
1.8.9.1