some meshgen and map rendering updates
[voxelands-alt.git] / inc / nvp.h
blobb69e743228363d0e674957d96f88fa0d8de3eb8d
1 #ifndef _NVP_H_
2 #define _NVP_H_
4 #ifndef _HAVE_NVP_TYPE
5 #define _HAVE_NVP_TYPE
6 typedef struct nvp_s {
7 struct nvp_s *prev;
8 struct nvp_s *next;
9 char* name;
10 unsigned int h;
11 char* value;
12 void *data;
13 } nvp_t;
14 #endif
16 /* defined in nvp.c */
17 void nvp_free(nvp_t **list, int data);
18 nvp_t *nvp_get(nvp_t **list, char* name);
19 char* nvp_get_str(nvp_t **list, char* name);
20 int nvp_get_int(nvp_t **list, char* name);
21 float nvp_get_float(nvp_t **list, char* name);
22 int nvp_get_bool(nvp_t **list, char* name);
23 void *nvp_get_data(nvp_t **list, char* name);
24 void nvp_set(nvp_t **list, char* name, char* value, void *data);
25 void nvp_set_int(nvp_t **list, char* name, int value);
26 void nvp_set_float(nvp_t **list, char* name, float value);
28 #endif