/* hash.h - hash tables for opkg
Steven M. Ayer, Jamey Hicks
-
+
Copyright (C) 2002 Compaq Computer Corporation
This program is free software; you can redistribute it and/or
};
struct hash_table {
- const char *name;
- hash_entry_t * entries;
+ const char *name;
+ hash_entry_t * entries;
unsigned int n_buckets;
unsigned int n_elements;
unsigned int n_hits, n_misses;
};
-int hash_table_init(const char *name, hash_table_t *hash, int len);
+void hash_table_init(const char *name, hash_table_t *hash, int len);
void hash_table_deinit(hash_table_t *hash);
void hash_print_stats(hash_table_t *hash);
void *hash_table_get(hash_table_t *hash, const char *key);