X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=cache.h;h=4e8a421e629c0b793a8f98ffec1db1edff2f4f6d;hp=2e921a1b9483efdc6b6b6a3fef70940975b3db22;hb=ef875b5d81ba18d26c7e6cba6ed680a7c89b12db;hpb=be25ce4fe37ddc9c42df9558e2a13dae146dee79 diff --git a/cache.h b/cache.h index 2e921a1..4e8a421 100644 --- a/cache.h +++ b/cache.h @@ -19,31 +19,24 @@ #include "dns.h" -struct cache_type { - struct avl_node avl; - - char *key; - char *val; -}; - struct cache_entry { - struct avl_node avl; + struct avl_node avl; - char *entry; - char *host; + const char *entry; + const char *host; uint32_t ttl; time_t time; }; struct cache_record { - struct avl_node avl; + struct avl_node avl; - char *record; + const char *record; uint16_t type; uint32_t ttl; int port; - char *txt; - uint8_t *rdata; + const char *txt; + const uint8_t *rdata; uint16_t rdlength; time_t time; };