aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-12-22 20:01:06 +0000
committerGerald Combs <gerald@wireshark.org>2009-12-22 20:01:06 +0000
commit4f30c2170ecf9cf634facd4f36423d3280a3e2d0 (patch)
tree5258ae324c9ce1e65278d94996deaeb4288a164a /epan/addr_resolv.h
parentc280820a86644e512c2d83f0e1cbbf324aca8686 (diff)
Change host_name_lookup_process to return TRUE if anything new has been
resolved since the last time it was called. Use this to redraw the packet list and detail any time we have newly-resolved objects. svn path=/trunk/; revision=31350
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r--epan/addr_resolv.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h
index 745adfc7a5..2ff69b5a44 100644
--- a/epan/addr_resolv.h
+++ b/epan/addr_resolv.h
@@ -124,8 +124,14 @@ void get_addr_name_buf(address *addr, gchar *buf, gsize size);
/* host_name_lookup_init fires up an ADNS socket if we're using ADNS */
extern void host_name_lookup_init(void);
-/* host_name_lookup_process does ADNS processing in GLIB timeouts in Wireshark,
- and before processing each packet in TShark, if we're using ADNS */
+/** If we're using c-ares or ADNS, process outstanding host name lookups.
+ * This is called from a GLIB timeout in Wireshark and before processing
+ * each packet in TShark.
+ *
+ * @param data Ignored.
+ * @return True if any new objects have been resolved since the previous
+ * call. This can be used to trigger a display update, e.g. in Wireshark.
+ */
extern gboolean host_name_lookup_process(gpointer data);
/* host_name_lookup_cleanup cleans up an ADNS socket if we're using ADNS */