Add a routine to get an array of all instances of a string option.
authorGuy Harris <guy@alum.mit.edu>
Mon, 6 Jun 2016 01:04:23 +0000 (18:04 -0700)
committerGuy Harris <guy@alum.mit.edu>
Mon, 6 Jun 2016 01:04:55 +0000 (01:04 +0000)
commitf9be95c4c8ab3484e6cf396e0cf4242b18ff8841
treede6b8561e7ed4519aab54e029fc15d84a5fb1885
parentadee6850898a5469850a157c5816996691855ed2
Add a routine to get an array of all instances of a string option.

Use it for OPT_COMMENT in the SHB, as there may be ore than one instance
of OPT_COMMENT in an SHB.

Also, use wtap_optionblock_get_option_string for OPT_SHB_HARDWARE,
OPT_SHB_OS, and OPT_SHB_USERAPPL; they're specified as "only one
instance allowed".

Change-Id: I23ad87e41e40b7ae1155e96c0523a6f8caad5204
Reviewed-on: https://code.wireshark.org/review/15750
Reviewed-by: Guy Harris <guy@alum.mit.edu>
capinfos.c
ui/gtk/summary_dlg.c
wiretap/wtap_opttypes.c
wiretap/wtap_opttypes.h