aboutsummaryrefslogtreecommitdiff
path: root/src/zonefile.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-16 03:22:23 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-16 03:22:23 +0100
commit47334cfaa2315828e6f7b959a1bde180c9c29604 (patch)
treeacf365c3c947664faa97b40e892c63eadb332b35 /src/zonefile.h
parent9dc2a544f88ddedea24d16f05170cb90858c3e9a (diff)
downloaddns-47334cfaa2315828e6f7b959a1bde180c9c29604.tar.gz
moved tree_* functions to tree.h/.c
Diffstat (limited to 'src/zonefile.h')
-rw-r--r--src/zonefile.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/zonefile.h b/src/zonefile.h
index 94a0de7..633e824 100644
--- a/src/zonefile.h
+++ b/src/zonefile.h
@@ -9,6 +9,8 @@
#include <stdint.h>
#include <stdlib.h>
+#include "tree.h"
+
struct record_entry {
char* name;
uint32_t ttl;
@@ -30,18 +32,3 @@ int zonefile_parse ( char* _filename, struct record_node* _dns_zone );
int zonefile_query ( char* _hostname, struct record_entry* _entry );
-static int tree_insert ( struct record_node* _root, struct record_entry* _node );
-
-static int tree_balance ( struct record_node* _root );
-
-static struct record_entry* tree_get ( struct record_node* _root, char* _query );
-
-static int tree_destroy ( struct record_node* _root );
-
-/**
- * returns:
- * 0 :: _1 == _2
- * -1 :: _1 < _2
- * +1 :: _1 > _2
- * */
-int string_compare ( char* _1, char* _2 );