aboutsummaryrefslogtreecommitdiff
path: root/src/record.h
blob: ef41ecb42e307f72211fa269328825bf811e512f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);