diff options
Diffstat (limited to 'src/database.h')
-rw-r--r-- | src/database.h | 18 |
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, |