#define _UTIL_H__
#include <stdint.h>
+#include <time.h>
#define DBG(level, fmt, ...) do { \
if (debug >= level) \
extern int debug;
extern uint8_t mdns_buf[MDNS_BUF_LEN];
-extern char mdns_hostname[HOSTNAME_LEN];
-extern char mdns_hostname_local[HOSTNAME_LEN + 6];
-void *memdup(const void *d, int l);
+/**
+ * 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 signal_setup(void);
extern void get_hostname(void);
extern uint32_t rand_time_delta(uint32_t t);
+extern time_t monotonic_time(void);
#endif