bglibs
adt_common.h
1 #ifndef BGLIBS__ADT__COMMON__H__
2 #define BGLIBS__ADT__COMMON__H__
3 
10 typedef unsigned long adt_hash_t;
12 typedef void adt_free_fn(void*);
16 typedef int adt_copy_fn(void*, const void*);
20 typedef int adt_cmp_fn(const void*, const void*);
22 typedef adt_hash_t adt_hash_fn(const void*);
23 
25 adt_hash_t adt_hashb(const unsigned char*, unsigned long);
26 
28 adt_hash_t adt_hashs(const unsigned char*);
29 
31 adt_hash_t adt_hashsp(const char* const*);
33 int adt_cmpsp(const char* const* a, const char* const* b);
35 int adt_copysp(const char** a, const char* const* b);
37 void adt_freesp(const char** a);
38 
41 #endif
void adt_free_fn(void *)
Definition: adt_common.h:12
adt_hash_t adt_hashsp(const char *const *)
Definition: adt_sp.c:16
adt_hash_t adt_hashb(const unsigned char *, unsigned long)
Definition: hashb.c:6
int adt_cmp_fn(const void *, const void *)
Definition: adt_common.h:20
void adt_freesp(const char **a)
Definition: adt_sp.c:21
adt_hash_t adt_hashs(const unsigned char *)
Definition: hashs.c:6
int adt_copysp(const char **a, const char *const *b)
Definition: adt_sp.c:11
int adt_copy_fn(void *, const void *)
Definition: adt_common.h:16
int adt_cmpsp(const char *const *a, const char *const *b)
Definition: adt_sp.c:6
unsigned long adt_hash_t
Definition: adt_common.h:10
adt_hash_t adt_hash_fn(const void *)
Definition: adt_common.h:22