1 /* dynid.h: 2 * 3 **************************************************************** 4 * Copyright (C) 2004 Tom Lord 5 * 6 * See the file "COPYING" for further information about 7 * the copyright and warranty status of this work. 8 */ 9 10 #ifndef INCLUDE__LIBAWIKI__DYNID_H 11 #define INCLUDE__LIBAWIKI__DYNID_H 12 13 14 #include "hackerlab/oblists/oblist.h" 15 16 17 18 typedef struct dynid_table t_dynid_table; 19 typedef struct dynid_record t_dynid_record; 20 21 22 23 struct dynid_table 24 { 25 t_oblist id_table; 26 }; 27 28 struct dynid_record 29 { 30 void * key; 31 ssize_t id; 32 }; 33 34 35 36 /* automatically generated __STDC__ prototypes */ 37 extern int init_dynid_table (t_dynid_table * dt, alloc_limits limits); 38 extern void uninit_dynid_table (t_dynid_table * dt, alloc_limits limits); 39 extern ssize_t dynid_find (t_dynid_table * dt, alloc_limits limits, void * key); 40 extern ssize_t dynid_ensure (t_dynid_table * dt, alloc_limits limits, void * key); 41 extern ssize_t find_global_dynid (void * key); 42 extern ssize_t ensure_global_dynid (void * key); 43 #endif /* INCLUDE__LIBAWIKI__DYNID_H */ 44 45 46 /* tag: Tom Lord Sun Oct 24 21:49:16 2004 (dynid.h) 47 */ 48