aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeveloper Alexander <dev@alex-mails.de>2021-08-28 07:53:51 +0200
committerDeveloper Alexander <dev@alex-mails.de>2021-08-28 07:53:51 +0200
commit68893e415c4467867b32c03aad364a7f016b1187 (patch)
tree79f4280599ed924e287dd8ad548a8a6a371d4cbb
parent9b132c235331dd655c1bd38168e54a4c4e660786 (diff)
capture file: remove redundant API ref_time_packets()
Redundant API ref_time_packets() gets removed. cf_reftime_packets() gets a better dokumentation.
-rw-r--r--file.c11
-rw-r--r--file.h3
2 files changed, 4 insertions, 10 deletions
diff --git a/file.c b/file.c
index 29b6114d68..ea85533d15 100644
--- a/file.c
+++ b/file.c
@@ -110,7 +110,6 @@ static gboolean find_packet(capture_file *cf, ws_match_function match_function,
void *criterion, search_direction dir);
static void cf_rename_failure_alert_box(const char *filename, int err);
-static void ref_time_packets(capture_file *cf);
/* Seconds spent processing packets between pushing UI updates. */
#define PROGBAR_UPDATE_INTERVAL 0.150
@@ -1554,12 +1553,6 @@ cf_filter_packets(capture_file *cf, gchar *dftext, gboolean force)
}
void
-cf_reftime_packets(capture_file *cf)
-{
- ref_time_packets(cf);
-}
-
-void
cf_redissect_packets(capture_file *cf)
{
if (cf->read_lock || cf->redissection_queued == RESCAN_SCAN) {
@@ -2022,8 +2015,8 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb
* without rereading the file.
* XXX - do we need a progres bar or is this fast enough?
*/
-static void
-ref_time_packets(capture_file *cf)
+void
+cf_reftime_packets(capture_file* cf)
{
guint32 framenum;
frame_data *fdata;
diff --git a/file.h b/file.h
index fbc59ee7ca..369d19349d 100644
--- a/file.h
+++ b/file.h
@@ -395,7 +395,8 @@ void cf_set_rfcode(capture_file *cf, dfilter_t *rfcode);
cf_status_t cf_filter_packets(capture_file *cf, gchar *dfilter, gboolean force);
/**
- * At least one "Refence Time" flag has changed, rescan all packets.
+ * Scan through all frame data and recalculate the ref time
+ * without rereading the file.
*
* @param cf the capture file
*/