X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=util.h;h=c0db9e711e000c2b97dd308f07e9e11484c512f3;hp=1a01fccd37b05eaeeccc29779e32dfd535374c70;hb=HEAD;hpb=30d33913cb2d8e895ebf1c79595a0ebf901d925b diff --git a/util.h b/util.h index 1a01fcc..c0db9e7 100644 --- a/util.h +++ b/util.h @@ -15,6 +15,7 @@ #define _UTIL_H__ #include +#include #define DBG(level, fmt, ...) do { \ if (debug >= level) \ @@ -26,10 +27,18 @@ extern int debug; extern uint8_t mdns_buf[MDNS_BUF_LEN]; -extern char mdns_hostname[HOSTNAME_LEN]; + +/** + * The first label of a host's fully qualified domain name + * + * E.g. just "example" for the domain name example.local. + */ +extern char umdns_host_label[HOSTNAME_LEN]; + extern char mdns_hostname_local[HOSTNAME_LEN + 6]; extern void get_hostname(void); extern uint32_t rand_time_delta(uint32_t t); +extern time_t monotonic_time(void); #endif