aboutsummaryrefslogtreecommitdiff
path: root/src/record.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-21 00:25:05 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-21 00:25:05 +0200
commit35c378db771ea870c4a94ffc2331b13b3522cb3c (patch)
treee22612df400fa46c3f9e18b04dba07d311ad6fc9 /src/record.h
parent859843ceda93c96bf0ab20ecf5b5e5a20456ea76 (diff)
downloaddns-35c378db771ea870c4a94ffc2331b13b3522cb3c.tar.gz
add record parser
Diffstat (limited to 'src/record.h')
-rw-r--r--src/record.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/record.h b/src/record.h
new file mode 100644
index 0000000..ef41ecb
--- /dev/null
+++ b/src/record.h
@@ -0,0 +1,19 @@
+/*
+ * src/record.h
+ * (c) 2021 Jonas Gunz <himself@jonasgunz.de>
+ * License: MIT
+ */
+
+#pragma once
+
+#include <stdint.h>
+#include <strings.h>
+#include <sys/types.h>
+
+#include "log.h"
+
+uint16_t record_class_from_str(char* _str);
+
+uint16_t record_type_from_str(char* _str);
+
+ssize_t record_rdata_from_str(void** _rdata, char *_str, uint16_t _rdtype);