capture file: remove redundant API ref_time_packets()

Redundant API ref_time_packets() gets removed.

cf_reftime_packets() gets a better dokumentation.
This commit is contained in:
Developer Alexander 2021-08-28 07:53:51 +02:00
parent 9b132c2353
commit 68893e415c
2 changed files with 4 additions and 10 deletions

11
file.c
View File

@ -110,7 +110,6 @@ static gboolean find_packet(capture_file *cf, ws_match_function match_function,
void *criterion, search_direction dir); void *criterion, search_direction dir);
static void cf_rename_failure_alert_box(const char *filename, int err); 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. */ /* Seconds spent processing packets between pushing UI updates. */
#define PROGBAR_UPDATE_INTERVAL 0.150 #define PROGBAR_UPDATE_INTERVAL 0.150
@ -1553,12 +1552,6 @@ cf_filter_packets(capture_file *cf, gchar *dftext, gboolean force)
return CF_OK; return CF_OK;
} }
void
cf_reftime_packets(capture_file *cf)
{
ref_time_packets(cf);
}
void void
cf_redissect_packets(capture_file *cf) cf_redissect_packets(capture_file *cf)
{ {
@ -2022,8 +2015,8 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb
* without rereading the file. * without rereading the file.
* XXX - do we need a progres bar or is this fast enough? * XXX - do we need a progres bar or is this fast enough?
*/ */
static void void
ref_time_packets(capture_file *cf) cf_reftime_packets(capture_file* cf)
{ {
guint32 framenum; guint32 framenum;
frame_data *fdata; frame_data *fdata;

3
file.h
View File

@ -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); 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 * @param cf the capture file
*/ */