diff options
author | Matej Cepl <mcepl@redhat.com> | 2008-02-26 17:27:08 +0100 |
---|---|---|
committer | Matej Cepl <mcepl@redhat.com> | 2008-02-26 17:27:08 +0100 |
commit | c50ce75f2e06b6b8abe49e34775d343b74f7e8cd (patch) | |
tree | 14c314e39296b0c3abe781e4dac194949e220136 /wlp/C/structs.h | |
download | pygn-c50ce75f2e06b6b8abe49e34775d343b74f7e8cd.tar.gz |
The original upstream from Debian orig.tar.gz tarball.0.9.7
Diffstat (limited to 'wlp/C/structs.h')
-rw-r--r-- | wlp/C/structs.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/wlp/C/structs.h b/wlp/C/structs.h new file mode 100644 index 0000000..92036a7 --- /dev/null +++ b/wlp/C/structs.h @@ -0,0 +1,35 @@ +/* + * structs.h - Copyright 2000, 2001 by Cosimo Alfarano <Alfarano@CS.UniBo.It> + * You can use this software under the terms of the GPL. If we meet some day, + * and you think this stuff is worth it, you can buy me a beer in return. + * + * Thanks to md for this useful formula. Beer is beer. + */ + +#ifndef _structs_h_ +#define _structs_h_ + +typedef struct wlp_node_t { + char *left,*right; + char *owner; + char type; /* unused */ + struct wlp_node_t *next, *prev; +} wlp_node_t; + +typedef struct wlp_list_t { + int count; + struct wlp_node_t *head, *tail; +} wlp_list_t; + + +/* white list parser data structure manipulation */ +struct wlp_list_t *wlpl_init(struct wlp_node_t *node); +struct wlp_node_t *wlpn_alloc(const char empty); +void wlpn_free(struct wlp_node_t *node); +struct wlp_node_t *wlpn_add(struct wlp_list_t *wlpl,struct wlp_node_t *wlpn); +struct wlp_node_t *wlpn_extract(struct wlp_list_t *wlpl,struct wlp_node_t *wlpn); +/*struct wlp_node_t *wlpn_search(struct wlp_list_t *wlpl,const char id);*/ + +#endif /* _structs_h_ */ + +/* EOF */ |