diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-04-04 14:01:56 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-04-04 21:03:34 +0000 |
commit | c67bc0335566113fc325830660f5571d2e6ad0f6 (patch) | |
tree | e134ceb3cb71ada1a3aecbd7b09cf5c954d639a0 /ui/capture_ui_utils.h | |
parent | 666f9bcfda5959172fd941a4cec333db75217ecf (diff) | |
download | wireshark-c67bc0335566113fc325830660f5571d2e6ad0f6.tar.gz |
Let capture_dev_user_pmode_find() say "not found".
"Not found" is different from "found, and false". Have it return a
boolean "did I find the property" indication and, if it did, supply the
property value through a pointer.
Change-Id: Iaa942ea346410b35e512ff1a3821cbf60c88dfd6
Reviewed-on: https://code.wireshark.org/review/7916
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/capture_ui_utils.h')
-rw-r--r-- | ui/capture_ui_utils.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/capture_ui_utils.h b/ui/capture_ui_utils.h index 6146e96f43..50fb13073a 100644 --- a/ui/capture_ui_utils.h +++ b/ui/capture_ui_utils.h @@ -85,8 +85,14 @@ gboolean capture_dev_user_snaplen_find(const gchar *if_name, gboolean *hassnap, /** * Find user-specified promiscuous mode that matches interface * name, if any. + * + * @param if_name The name of the interface. + * @param pmode Pointer to a variable to be set to TRUE if promiscuous + * mode should be used and FALSE if it shouldn't be used. + * + * @return TRUE if found or FALSE if not found. */ -gboolean capture_dev_user_pmode_find(const gchar *if_name); +gboolean capture_dev_user_pmode_find(const gchar *if_name, gboolean *pmode); /** * Find user-specified capture filter that matches interface |