]> git.meshlink.io Git - catta/blobdiff - iface.h
* add todo list
[catta] / iface.h
diff --git a/iface.h b/iface.h
index 85e535ca13be8a504b59fbbbf4eaee19f280e58f..16e96508498fa58f987be3379692d58eecf5975f 100644 (file)
--- a/iface.h
+++ b/iface.h
@@ -53,7 +53,7 @@ struct _flxInterface {
     
     flxHwInterface *hardware;
     guchar protocol;
-    gboolean relevant;
+    gboolean announcing;
 
     flxCache *cache;
     flxPacketScheduler *scheduler;
@@ -82,8 +82,8 @@ flxHwInterface* flx_interface_monitor_get_hw_interface(flxInterfaceMonitor *m, g
 
 void flx_interface_send_packet(flxInterface *i, flxDnsPacket *p);
 
-void flx_interface_post_query(flxInterface *i, flxKey *k);
-void flx_interface_post_response(flxInterface *i, flxRecord *rr);
+void flx_interface_post_query(flxInterface *i, flxKey *k, gboolean immediately);
+void flx_interface_post_response(flxInterface *i, flxRecord *rr, gboolean immediately);
 
 void flx_dump_caches(flxInterfaceMonitor *m, FILE *f);
 
@@ -92,4 +92,8 @@ gboolean flx_interface_address_relevant(flxInterfaceAddress *a);
 
 gboolean flx_interface_match(flxInterface *i, gint index, guchar protocol);
 
+typedef void (*flxInterfaceMonitorWalkCallback)(flxInterfaceMonitor *m, flxInterface *i, gpointer userdata);
+    
+void flx_interface_monitor_walk(flxInterfaceMonitor *m, gint index, guchar protocol, flxInterfaceMonitorWalkCallback callback, gpointer userdata);
+
 #endif