]> git.karo-electronics.de Git - mdnsd.git/blobdiff - mdnsd.h
add record as an argument to the conflict function
[mdnsd.git] / mdnsd.h
diff --git a/mdnsd.h b/mdnsd.h
index bc86df680e7c31562826aba8d430baa98ecb95b3..636ebbfbebcc479a2b11f16c99ee084cb75d4689 100644 (file)
--- a/mdnsd.h
+++ b/mdnsd.h
@@ -44,14 +44,14 @@ void mdnsd_in(mdnsd d, struct message *m, unsigned long int ip, unsigned short i
 // outgoing messge to be delivered to host, returns >0 if one was returned and m/ip/port set
 int mdnsd_out(mdnsd d, struct message *m, unsigned long int *ip, unsigned short int *port);
 //
-// returns the max wait-time until mdnsd_out() needs to be called again
+// returns the max wait-time until mdnsd_out() needs to be called again 
 struct timeval *mdnsd_sleep(mdnsd d);
 //
 ////////////
 
 ///////////
 // Q/A functions
-//
+// 
 // register a new query
 //   answer(record, arg) is called whenever one is found/changes/expires (immediate or anytime after, mdnsda valid until ->ttl==0)
 //   either answer returns -1, or another mdnsd_query with a NULL answer will remove/unregister this query
@@ -69,8 +69,8 @@ mdnsda mdnsd_list(mdnsd d, char *host, int type, mdnsda last);
 // create a new unique record (try mdnsda_list first to make sure it's not used)
 //   conflict(arg) called at any point when one is detected and unable to recover
 //   after the first data is set_*(), any future changes effectively expire the old one and attempt to create a new unique record
-mdnsdr mdnsd_unique(mdnsd d, char *host, int type, long int ttl, void (*conflict)(char *host, int type, void *arg), void *arg);
-//
+mdnsdr mdnsd_unique(mdnsd d, char *host, int type, long int ttl, void (*conflict)(mdnsdr r, char *host, int type, void *arg), void *arg);
+// 
 // create a new shared record
 mdnsdr mdnsd_shared(mdnsd d, char *host, int type, long int ttl);
 //