~ubuntu-branches/ubuntu/intrepid/htop/intrepid

« back to all changes in this revision

Viewing changes to Hashtable.h

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2006-08-14 13:03:15 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20060814130315-mm00h2owyqz2zr2j
Tags: 0.6.3-1
* New upstream version.
  - allows to rekill tagged group of processes (Closes: #375219)
* Bumped Standards-Version to 3.7.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Do not edit this file. It was automatically genarated. */
 
1
/* Do not edit this file. It was automatically generated. */
2
2
 
3
3
#ifndef HEADER_Hashtable
4
4
#define HEADER_Hashtable
18
18
typedef struct Hashtable_ Hashtable;
19
19
 
20
20
typedef void(*Hashtable_PairFunction)(int, void*, void*);
21
 
typedef int(*Hashtable_HashAlgorithm)(Hashtable*, int);
22
21
 
23
22
typedef struct HashtableItem {
24
23
   int key;
30
29
   int size;
31
30
   HashtableItem** buckets;
32
31
   int items;
33
 
   Hashtable_HashAlgorithm hashAlgorithm;
34
32
   bool owner;
35
33
};
36
34
 
38
36
 
39
37
Hashtable* Hashtable_new(int size, bool owner);
40
38
 
41
 
int Hashtable_hashAlgorithm(Hashtable* this, int key);
42
 
 
43
39
void Hashtable_delete(Hashtable* this);
44
40
 
45
41
inline int Hashtable_size(Hashtable* this);
47
43
void Hashtable_put(Hashtable* this, int key, void* value);
48
44
 
49
45
void* Hashtable_remove(Hashtable* this, int key);
50
 
 
 
46
//#include <stdio.h>
51
47
inline void* Hashtable_get(Hashtable* this, int key);
52
48
 
53
49
void Hashtable_foreach(Hashtable* this, Hashtable_PairFunction f, void* userData);