wireshark/ui
Stig Bjørlykke 19153cf911 wsutil: Add config_file_exists_with_entries()
The purpose of this function is to check if a configuration file exists
and has at least one entry which is not a comment.

Use this when building the list of profiles where the user can copy
configuration from, to avoid listing profiles with empty files or files
with only comments.

Change-Id: If45f52025959818fb1213ffac488cd59441e9fce
Reviewed-on: https://code.wireshark.org/review/30113
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-10-11 12:33:05 +00:00
..
cli
macosx
qt wsutil: Add config_file_exists_with_entries() 2018-10-11 12:33:05 +00:00
win32
CMakeLists.txt
alert_box.c
alert_box.h
all_files_wildcard.h
capture.c
capture.h
capture_globals.h
capture_ui_utils.c
capture_ui_utils.h
commandline.c
commandline.h
console.c
console.h
decode_as_utils.c
decode_as_utils.h
dissect_opts.c
dissect_opts.h
export_object_ui.c
export_object_ui.h
export_pdu_ui_utils.c
export_pdu_ui_utils.h
failure_message.c
failure_message.h
file_dialog.c
file_dialog.h
filter_files.c
filter_files.h
firewall_rules.c
firewall_rules.h
help_url.c
help_url.h
iface_lists.c
iface_lists.h
iface_toolbar.c
iface_toolbar.h
io_graph_item.c
io_graph_item.h
language.c
language.h
last_open_dir.h
main_statusbar.h
mcast_stream.c
mcast_stream.h
packet_list_utils.c
packet_list_utils.h
packet_range.c
packet_range.h
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c
preference_utils.h
profile.c
profile.h
progress_dlg.h
proto_hier_stats.c
proto_hier_stats.h
recent.c
recent.h
recent_utils.h
rtp_media.c
rtp_media.h
rtp_stream.c
rtp_stream.h
rtp_stream_id.c
rtp_stream_id.h
service_response_time.c
service_response_time.h
simple_dialog.h
software_update.c
software_update.h
ssl_key_export.c
ssl_key_export.h
summary.c
summary.h
tap-iax2-analysis.c
tap-iax2-analysis.h
tap-rlc-graph.c
tap-rlc-graph.h
tap-rtp-analysis.c
tap-rtp-analysis.h
tap-rtp-common.c
tap-rtp-common.h
tap-sctp-analysis.c
tap-sctp-analysis.h
tap-tcp-stream.c
tap-tcp-stream.h
tap_export_pdu.c
tap_export_pdu.h
taps.h
text_import.c
text_import.h
text_import_scanner.h
text_import_scanner.l
time_shift.c
time_shift.h
traffic_table_ui.c
traffic_table_ui.h
util.c
util.h
voip_calls.c
voip_calls.h
ws_ui_util.h