aboutsummaryrefslogtreecommitdiffstats
path: root/domain-lookup.h
diff options
context:
space:
mode:
Diffstat (limited to 'domain-lookup.h')
-rw-r--r--domain-lookup.h10
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);