ubus: assume that the service iface can be NULL
[project/mdnsd.git] / util.h
diff --git a/util.h b/util.h
index c0db9e711e000c2b97dd308f07e9e11484c512f3..57afcd30147b4282a886366751de8eaaeb06d3d8 100644 (file)
--- a/util.h
+++ b/util.h
@@ -18,6 +18,7 @@
 #include <time.h>
 
 #define DBG(level, fmt, ...) do { \
+       umdns_udebug_printf("[%d] [%s:%d] " fmt, level, __func__, __LINE__, ## __VA_ARGS__); \
        if (debug >= level) \
                fprintf(stderr, "mdnsd: %s (%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
        } while (0)
@@ -41,4 +42,7 @@ extern void get_hostname(void);
 extern uint32_t rand_time_delta(uint32_t t);
 extern time_t monotonic_time(void);
 
+void umdns_udebug_set_enabled(bool val);
+void umdns_udebug_printf(const char *format, ...);
+
 #endif