diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-08-02 15:13:13 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-08-04 14:13:53 +0000 |
commit | a671bab3373101ce593c78ee1af476719f357028 (patch) | |
tree | 0c743bb3f79740d9b5bdd6d5f8889e87ca2721f7 /extcap/extcap-base.h | |
parent | 7e08f158851910954cbd9d038912a6e46b633cbe (diff) | |
download | wireshark-a671bab3373101ce593c78ee1af476719f357028.tar.gz |
extcap: restyle the help function.
Change-Id: Ia742dffb1fd4cd5780b8ba44f7064d1874e473da
Reviewed-on: https://code.wireshark.org/review/16842
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap/extcap-base.h')
-rw-r--r-- | extcap/extcap-base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extcap/extcap-base.h b/extcap/extcap-base.h index 839cfd362f..90aa19c1c1 100644 --- a/extcap/extcap-base.h +++ b/extcap/extcap-base.h @@ -116,6 +116,9 @@ typedef struct _extcap_parameters uint8_t do_list_dlts; uint8_t do_list_interfaces; + char * help_header; + GList * help_options; + } extcap_parameters; void extcap_base_register_interface(extcap_parameters * extcap, const char * interface, const char * ifdescription, uint16_t dlt, const char * dltdescription ); @@ -124,6 +127,11 @@ void extcap_base_set_util_info(extcap_parameters * extcap, const char * major, c uint8_t extcap_base_parse_options(extcap_parameters * extcap, int result, char * optargument); uint8_t extcap_base_handle_interface(extcap_parameters * extcap); void extcap_base_cleanup(extcap_parameters ** extcap); +void extcap_help_add_header(extcap_parameters * extcap, char * help_header); +void extcap_help_add_option(extcap_parameters * extcap, const char * help_option_name, const char * help_optionn_desc); +void extcap_help_print(extcap_parameters * extcap); + +void extcap_base_help(void); #endif |