diff options
author | 2013-02-21 11:01:20 +0100 | |
---|---|---|
committer | 2013-02-22 16:29:11 +0100 | |
commit | 112fe388d5cb90a29d6a07e98815c11b65bf801b (patch) | |
tree | b416e26632d3a3efa8ceaf7fbebcf5fb43c9a7a7 /domain-lookup.h | |
download | domain-lookup-tree-master.tar.xz domain-lookup-tree-master.zip |
Diffstat (limited to 'domain-lookup.h')
-rw-r--r-- | domain-lookup.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/domain-lookup.h b/domain-lookup.h new file mode 100644 index 0000000..8e45dee --- /dev/null +++ b/domain-lookup.h @@ -0,0 +1,10 @@ +struct domain_lookup_tree { + char *component; + void *data; + struct domain_lookup_tree *first_child; + struct domain_lookup_tree *next_sibling; +}; + +struct domain_lookup_tree* init_dlt(); +void* find_dlt(struct domain_lookup_tree *head, const char *domain); +int insert_dlt(struct domain_lookup_tree *head, const char *domain, void *data); |