aboutsummaryrefslogtreecommitdiff
path: root/src/record.h
diff options
context:
space:
mode:
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);