aboutsummaryrefslogtreecommitdiff
path: root/src/zonefile.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-04-30 23:27:11 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-04-30 23:27:11 +0200
commitbd8e73aad283611c096f07e0fc16aa4985f9f2eb (patch)
tree9ce9d9d41387a62dd4cc3b88669a991244d7b8b7 /src/zonefile.h
parentba7c93085b419d1453dfb722b570245c4a725c83 (diff)
downloaddns-bd8e73aad283611c096f07e0fc16aa4985f9f2eb.tar.gz
implemented database
Diffstat (limited to 'src/zonefile.h')
-rw-r--r--src/zonefile.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/zonefile.h b/src/zonefile.h
deleted file mode 100644
index 633e824..0000000
--- a/src/zonefile.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * zonefile.h
- * (c) 2019 Jonas Gunz
- * License: MIT
- * */
-
-#pragma once
-
-#include <stdint.h>
-#include <stdlib.h>
-
-#include "tree.h"
-
-struct record_entry {
- char* name;
- uint32_t ttl;
- uint16_t class;
- uint16_t type;
- uint16_t rdlength;
- char* rd;
-};
-
-struct record_node {
- struct record_entry* rr;
- struct record_node* below;
- struct record_node* above;
-};
-
-/**
- * */
-int zonefile_parse ( char* _filename, struct record_node* _dns_zone );
-
-int zonefile_query ( char* _hostname, struct record_entry* _entry );
-