From 98c68ed8cc11fa8932e480256b2544c50aaa790b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 2 May 2021 19:15:56 +0200 Subject: convert to typedef structs --- src/dns.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dns.c') diff --git a/src/dns.c b/src/dns.c index 01fe7fa..190069c 100644 --- a/src/dns.c +++ b/src/dns.c @@ -5,7 +5,7 @@ #include "dns.h" -int dns_construct_header ( char* _buffer, int _bufflen, struct dns_header* _header ) +int dns_construct_header ( char* _buffer, int _bufflen, dns_header_t* _header ) { if ( !_buffer || !_header || _bufflen < 12 ) return -1; @@ -32,7 +32,7 @@ int dns_construct_header ( char* _buffer, int _bufflen, struct dns_header* _head int dns_construct_answer ( char* _buffer, int _bufflen, - struct dns_answer* _answer + dns_answer_t* _answer ) { int ret = 0; @@ -62,7 +62,7 @@ int dns_construct_answer ( int dns_construct_questoin ( char* _buffer, int _bufflen, - struct dns_question* _question + dns_question_t* _question ) { //TODO Test int ret = 0; @@ -89,13 +89,13 @@ int dns_construct_questoin ( int dns_construct_packet ( char* _buffer, int _bufflen, - struct dns_message* _message + dns_message_t* _message ) { return -1; } -int dns_destroy_struct ( struct dns_message* _msg ) +int dns_destroy_struct ( dns_message_t* _msg ) { if ( !_msg ) return -1; @@ -113,7 +113,7 @@ int dns_destroy_struct ( struct dns_message* _msg ) return 0; } -int dns_parse_packet ( char* _buffer, int _bufflen, struct dns_message* _msg ) +int dns_parse_packet ( char* _buffer, int _bufflen, dns_message_t* _msg ) { //TODO refactor -- cgit v1.2.3