projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
umdnsd: Replace strerror(errno) with %m.
[project/mdnsd.git]
/
util.h
diff --git
a/util.h
b/util.h
index
1a01fcc
..
c0db9e7
100644
(file)
--- a/
util.h
+++ b/
util.h
@@
-15,6
+15,7
@@
#define _UTIL_H__
#include <stdint.h>
#define _UTIL_H__
#include <stdint.h>
+#include <time.h>
#define DBG(level, fmt, ...) do { \
if (debug >= level) \
#define DBG(level, fmt, ...) do { \
if (debug >= level) \
@@
-26,10
+27,18
@@
extern int debug;
extern uint8_t mdns_buf[MDNS_BUF_LEN];
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 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
#endif