source: trunk/third/rpm/python/hash.h @ 17931

Revision 17931, 913 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17930, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef H_HASH
2#define H_HASH
3
4/** \ingroup python
5 * \file python/hash.h
6 */
7
8struct hash_table;
9typedef struct hash_table * hashTable;
10
11struct ht_iterator {
12    int bucket;
13    int item;
14};
15
16typedef struct ht_iterator htIterator;
17
18/*@only@*/ /*@null@*/ struct hash_table * htNewTable(int size);
19void htFreeHashTable(/*@only@*/ struct hash_table *ht);
20void htHashStats(const struct hash_table *t);
21int htInTable(struct hash_table *t,  const char * dir, const char * base);
22void htAddToTable(struct hash_table *t, const char * dir, const char * base);
23void htPrintHashStats(struct hash_table *t);
24int htNumEntries(struct hash_table *t);
25void htRemoveFromTable(struct hash_table *t, const char * dir,
26                       const char * base);
27
28/* these use static storage */
29void htIterStart(htIterator * iter);
30int htIterGetNext(struct hash_table * t, htIterator * iter,
31                  const char ** dir, const char ** base);
32
33#endif
Note: See TracBrowser for help on using the repository browser.