open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
xht.h
Go to the documentation of this file.
1/** Simple string->void* hashtable, very static and bare minimal, but efficient */
2#ifndef MDNS_XHT_H_
3#define MDNS_XHT_H_
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#include "mdnsd_config.h"
10typedef struct xht xht_t;
11
12
13xht_t MDNSD_EXPORT *xht_new(int prime);
14
15
16void MDNSD_EXPORT xht_set(xht_t *h, char *key, void *val);
17
18
19void MDNSD_EXPORT xht_store(xht_t *h, char *key, int klen, void *val, int vlen);
20
21
22void MDNSD_EXPORT *xht_get(xht_t *h, char *key);
23
24
25void MDNSD_EXPORT xht_free(xht_t *h);
26
27
28typedef void (*xht_walker)(xht_t *h, char *key, void *val, void *arg);
29void xht_walk(xht_t *h, xht_walker w, void *arg);
30
31#ifdef __cplusplus
32} // extern "C"
33#endif
34
35#endif /* MDNS_XHT_H_ */
void MDNSD_EXPORT xht_free(xht_t *h)
struct xht xht_t
Simple string->void* hashtable, very static and bare minimal, but efficient.
Definition xht.h:10
void MDNSD_EXPORT xht_store(xht_t *h, char *key, int klen, void *val, int vlen)
void(* xht_walker)(xht_t *h, char *key, void *val, void *arg)
Definition xht.h:28
void xht_walk(xht_t *h, xht_walker w, void *arg)
xht_t MDNSD_EXPORT * xht_new(int prime)
void MDNSD_EXPORT * xht_get(xht_t *h, char *key)
void MDNSD_EXPORT xht_set(xht_t *h, char *key, void *val)