Doxygen annotations for config files.
[tools/librpm-tizen.git] / python / hash.h
1 #ifndef H_HASH
2 #define H_HASH
3
4 /** \ingroup python
5  * \file python/hash.h 
6  */
7
8 struct hash_table;
9 typedef struct hash_table * hashTable;
10
11 struct ht_iterator {
12     int bucket;
13     int item;
14 };
15
16 typedef struct ht_iterator htIterator;
17
18 struct hash_table *htNewTable(int size);
19 void htFreeHashTable(struct hash_table *ht);
20 int htInTable(struct hash_table *t,  const char * dir, const char * base);
21 void htAddToTable(struct hash_table *t, const char * dir, const char * base);
22 void htPrintHashStats(struct hash_table *t);
23 int htNumEntries(struct hash_table *t);
24 void htRemoveFromTable(struct hash_table *t, const char * dir, 
25                        const char * base);
26
27 /* these use static storage */
28 void htIterStart(htIterator * iter);
29 int htIterGetNext(struct hash_table * t, htIterator * iter, 
30                   const char ** dir, const char ** base);
31
32 #endif