summaryrefslogtreecommitdiff
path: root/ui/recent.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-02-20 18:31:15 -0800
committerGuy Harris <guy@alum.mit.edu>2017-02-21 02:31:27 +0000
commit72e2c3acfac3f56d1b6276d6cbbf55695da849b4 (patch)
treed66964785c1479502cfea3cb2d0be73ee202c456 /ui/recent.c
parente18ad46ad06cbde22a4319a1a73f73be76051171 (diff)
downloadwireshark-72e2c3acfac3f56d1b6276d6cbbf55695da849b4.tar.gz
Have a routine to iterate over the remote host list.
Have a routine that iterates over the remote host list if it exists. Remove the routine to get the remote host list; all accesses should be through functions in ui/remote.c. Change-Id: Idddceba76b50ce85ef8557e132d7552191c2fddc Reviewed-on: https://code.wireshark.org/review/20217 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/recent.c')
-rw-r--r--ui/recent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/recent.c b/ui/recent.c
index 01204f5d72..3408cd8405 100644
--- a/ui/recent.c
+++ b/ui/recent.c
@@ -412,9 +412,11 @@ free_remote_host (gpointer key _U_, gpointer value, gpointer user _U_)
return TRUE;
}
-GHashTable *get_remote_host_list(void)
+void
+remote_host_list_foreach(GHFunc func, gpointer user_data)
{
- return remote_host_list;
+ if (remote_host_list != NULL)
+ g_hash_table_foreach(remote_host_list, func, user_data);
}
static void