aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2022-06-28 14:56:06 +0200
committerRoland Knall <r.knall@moba.cc>2022-06-28 14:56:06 +0200
commitc3b2cec3f29f0f42cde8e199d12fcb9e048a229f (patch)
tree53a4ad52abdf7bdc5f17d5cdb85d464738cf2c67 /file.h
parentf210edeaf04c17da1e209518aae0e009e1164a73 (diff)
Ui: Cleanup row number and select packet
Remove unneeded row number in capture file. The packet list is the only object that should know the correct number, propagating it further only complicates things. At the same time, rework cf_select_packet to select the packet based on frame_data not on the row (which can be unreliable).
Diffstat (limited to 'file.h')
-rw-r--r--file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.h b/file.h
index 3895914ce8..dcf4eec5a8 100644
--- a/file.h
+++ b/file.h
@@ -615,9 +615,10 @@ gboolean cf_goto_framenum(capture_file *cf);
* Select the packet in the given row.
*
* @param cf the capture file
- * @param row the row to select
+ * @param frame the frame to be selected
+ * @param row the row the frame is currently residing to be selected
*/
-void cf_select_packet(capture_file *cf, int row);
+void cf_select_packet(capture_file *cf, frame_data *frame);
/**
* Unselect all packets, if any.