~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.h

  • Committer: Brian Aker
  • Date: 2009-10-12 06:15:02 UTC
  • mfrom: (1165.1.178 static-functions)
  • Revision ID: brian@gaz-20091012061502-cds4m0cya7ow8sj7
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
65
65
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I)
66
66
void hash_free(HASH *tree);
67
 
void my_hash_reset(HASH *hash);
68
67
unsigned char *hash_element(HASH *hash,uint32_t idx);
69
68
unsigned char *hash_search(const HASH *info, const unsigned char *key,
70
69
                           size_t length);
74
73
                         size_t length, HASH_SEARCH_STATE *state);
75
74
bool my_hash_insert(HASH *info,const unsigned char *data);
76
75
bool hash_delete(HASH *hash,unsigned char *record);
77
 
bool hash_update(HASH *hash,unsigned char *record, unsigned char *old_key,
78
 
                 size_t old_key_length);
79
 
void hash_replace(HASH *hash, HASH_SEARCH_STATE *state, unsigned char *new_row);
80
76
 
81
77
#define hash_clear(H) memset((H), 0, sizeof(*(H)))
82
78
#define hash_inited(H) ((H)->array.buffer != 0)