aboutsummaryrefslogtreecommitdiff
path: root/src/database.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-02 19:15:56 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-02 19:15:56 +0200
commit98c68ed8cc11fa8932e480256b2544c50aaa790b (patch)
tree97e7a5b0a3af20dd3e5014cfbb3e17289cb64c88 /src/database.h
parent009dc3ba991290de19f0a5e4e4a25a33e82689cc (diff)
downloaddns-98c68ed8cc11fa8932e480256b2544c50aaa790b.tar.gz
convert to typedef structs
Diffstat (limited to 'src/database.h')
-rw-r--r--src/database.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/database.h b/src/database.h
index 84e21c9..3fcef80 100644
--- a/src/database.h
+++ b/src/database.h
@@ -40,26 +40,26 @@
#define DB_CLASS_LEN 3
#define DB_RR_LEN 32
-struct database {
- struct tree_node*** zone;
-};
+typedef struct database {
+ tree_node_t*** zone;
+} database_t;
-struct database_rdata {
+typedef struct database_rdata {
char* rdata;
uint16_t rdlen;
uint32_t ttl;
-};
+} database_rdata_t;
int database_populate (
- struct database* _database,
+ database_t* _database,
char* _zonefile
);
-int database_destroy ( struct database* _database );
+int database_destroy ( database_t* _database );
int database_query (
- struct database_rdata* _rdata,
- struct database* _database,
+ database_rdata_t* _rdata,
+ database_t* _database,
const char* _qname,
int _qname_len,
uint16_t _qtype,