diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2015-08-16 12:37:11 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-08-19 04:26:24 +0000 |
commit | d64ad1de91cb8303ce5b76faf0c5bdc0bf09a930 (patch) | |
tree | 3b01dd8298f02eb111ff33e51bccdddb5863d118 /wiretap/wtap.h | |
parent | 3268023b877afa13ad68c08237baa36f9d6c89ec (diff) | |
download | wireshark-d64ad1de91cb8303ce5b76faf0c5bdc0bf09a930.tar.gz |
capinfos: add more info about file and interfaces
Add more information about the capture file, and about the interface
descriptions in it. Also remove long-unused g_options code.
Change-Id: I93cbd70fc7b09ec1b8b2fd6c85bb885c7f749543
Reviewed-on: https://code.wireshark.org/review/10073
Petri-Dish: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index e3b4e5166d..4c53b8706c 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -365,6 +365,7 @@ extern "C" { #define WTAP_TSPREC_MSEC 3 #define WTAP_TSPREC_USEC 6 #define WTAP_TSPREC_NSEC 9 +/* if you add to the above, update wtap_tsprec_string() */ /* * Maximum packet size we'll support. @@ -1741,10 +1742,14 @@ wtapng_iface_descriptions_t *wtap_file_get_idb_info(wtap *wth); * @note The returned pointer must be g_free'd. * * @param if_descr The interface description. + * @param indent Number of spaces to indent each line by. + * @param line_end A string to append to each line (e.g., "\n" or ", "). * @return A newly allocated gcahr array string, which must be g_free'd. */ WS_DLL_PUBLIC -gchar *wtap_get_debug_if_descr(const wtapng_if_descr_t *if_descr); +gchar *wtap_get_debug_if_descr(const wtapng_if_descr_t *if_descr, + const int indent, + const char* line_end); /** * @brief Gets new name resolution info for new file, based on existing info. @@ -1938,6 +1943,9 @@ WS_DLL_PUBLIC int wtap_short_string_to_encap(const char *short_name); WS_DLL_PUBLIC +const char* wtap_tsprec_string(int tsprec); + +WS_DLL_PUBLIC const char *wtap_strerror(int err); /*** get available number of file types and encapsulations ***/ |