blob: 9f5dde749fe19b095003f9b75e815f46c1f1d7f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#include "buffer.h"
#include "record.h"
typedef struct {
uint8_t* domain;
RecordType qtype;
uint16_t cls;
} Question;
void create_question(const char* domain, RecordType qtype, Question* question);
bool read_question(PacketBuffer* buffer, Question* question);
void write_question(PacketBuffer* buffer, Question* question);
void free_question(Question* question);
void print_question(Question* question);
|