diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-02-20 18:31:15 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-02-21 02:31:27 +0000 |
commit | 72e2c3acfac3f56d1b6276d6cbbf55695da849b4 (patch) | |
tree | d66964785c1479502cfea3cb2d0be73ee202c456 /ui/recent.h | |
parent | e18ad46ad06cbde22a4319a1a73f73be76051171 (diff) | |
download | wireshark-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.h')
-rw-r--r-- | ui/recent.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/recent.h b/ui/recent.h index 20b4701262..e027c6ba57 100644 --- a/ui/recent.h +++ b/ui/recent.h @@ -225,11 +225,13 @@ extern struct remote_host *recent_get_remote_host(const gchar *host); extern int recent_get_remote_host_list_size(void); /** - * Get the pointer of the remote_host_list. + * Iterate over all items in the remote_host_list, calling a + * function for each member * - * @return Pointer to the hash table + * @param func Function to be called + * @param user_data Argument to pass as user data to the function */ -extern GHashTable *get_remote_host_list(void); +extern void remote_host_list_foreach(GHFunc func, gpointer user_data); /** * Free all entries of the remote_host_list. |