umdnsd: Replace strerror(errno) with %m.
[project/mdnsd.git] / util.h
diff --git a/util.h b/util.h
index aaa2bd1..c0db9e7 100644 (file)
--- a/util.h
+++ b/util.h
@@ -15,6 +15,7 @@
 #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 get_hostname(void);
 extern uint32_t rand_time_delta(uint32_t t);
+extern time_t monotonic_time(void);
 
 #endif