You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
734 B
32 lines
734 B
#ifndef __BIGPOINT_HASH_H__
|
|
#define __BIGPOINT_HASH_H__
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "bigpoint_cclass.h"
|
|
#include "bigpoint_dyntype.h"
|
|
|
|
|
|
struct BIGPOINT_HASH {
|
|
const struct BIGPOINT_CCLASS * const class;
|
|
char ** keys;
|
|
struct BIGPOINT_DYNTYPE ** values;
|
|
size_t size;
|
|
size_t used;
|
|
};
|
|
|
|
extern const struct BIGPOINT_CCLASS * const BIGPOINT_HASH;
|
|
|
|
void bigpoint_hash_set(struct BIGPOINT_HASH * _this,
|
|
const char * key,
|
|
struct BIGPOINT_DYNTYPE * value);
|
|
|
|
struct BIGPOINT_DYNTYPE *
|
|
bigpoint_hash_get(struct BIGPOINT_HASH * _this, const char * key);
|
|
|
|
struct BIGPOINT_DYNTYPE *
|
|
bigpoint_hash_del(struct BIGPOINT_HASH * _this, const char * key);
|
|
|
|
#endif//__BIGPOINT_HASH_H__
|
|
|
|
// vim: set et ts=4 sw=4:
|