From 2798f7c9c4a691a91b19c9ed50dbcf1c151325af Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 20 Feb 2017 18:46:08 -0800 Subject: Have all the remote host list routines' names begin with recent_. Some did, some didn't - make it consistent. Clean up some header comments while we're at it. Change-Id: I978c84167cce3c8f1c0280898aa4d0b60958325b Reviewed-on: https://code.wireshark.org/review/20218 Reviewed-by: Guy Harris --- ui/recent.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'ui/recent.h') diff --git a/ui/recent.h b/ui/recent.h index e027c6ba57..bce8214b85 100644 --- a/ui/recent.h +++ b/ui/recent.h @@ -211,39 +211,40 @@ extern GList *recent_get_cfilter_list(const gchar *ifname); extern void recent_add_cfilter(const gchar *ifname, const gchar *s); /** - * Get the value of a remote host from the remote_host_list. + * Get the value of an entry for a remote host from the remote host list. * - * @param host Host's address + * @param host host name for the remote host. + * + * @return pointer to the entry for the remote host. */ extern struct remote_host *recent_get_remote_host(const gchar *host); /** - * Get the number of entries of the remote_host_list. + * Get the number of entries of the remote host list. * - * @return size of the hash table + * @return number of entries in the list. */ extern int recent_get_remote_host_list_size(void); /** - * Iterate over all items in the remote_host_list, calling a + * Iterate over all items in the remote host list, calling a * function for each member * - * @param func Function to be called - * @param user_data Argument to pass as user data to the function + * @param func function to be called + * @param user_data argument to pass as user data to the function */ -extern void remote_host_list_foreach(GHFunc func, gpointer user_data); +extern void recent_remote_host_list_foreach(GHFunc func, gpointer user_data); /** - * Free all entries of the remote_host_list. - * + * Free all entries of the remote host list. */ -extern void free_remote_host_list(void); +extern void recent_free_remote_host_list(void); /** * Add an entry to the remote_host_list. * * @param host Key of the entry - * @param rh Vakue of the entry + * @param rh Value of the entry */ extern void recent_add_remote_host(gchar *host, struct remote_host *rh); -- cgit v1.2.1