Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Merge branch 'devel'
[palacios.git] / kitten / include / lwk / htable.h
1 /* Copyright (c) 2008, Sandia National Laboratories */
2
3 #ifndef _LWK_HTABLE_H
4 #define _LWK_HTABLE_H
5
6 #include <lwk/idspace.h>
7
8 /**
9  * Hash table object.
10  */
11 typedef void * htable_t;
12
13 /**
14  * Hash table API.
15  */
16 extern int htable_create(size_t tbl_order,
17                          size_t obj_key_offset, size_t obj_link_offset,
18                          htable_t *tbl);
19 extern int htable_destroy(htable_t tbl);
20 extern int htable_add(htable_t tbl, void *obj);
21 extern int htable_del(htable_t tbl, void *obj);
22 extern void *htable_lookup(htable_t tbl, id_t key);
23
24 #endif