There’s an enhancement to plugin_if that doesn’t address your needs directly but may give you enough
functionality. It’s a function called plugin_if_get_ws_info. You can call it from within a dissector and it populates the following structure:
typedef struct _ws_info_t
gboolean ws_info_supported; /* false if no libpcap */
file_state cf_state; /* Current state of capture file */
gchar *cf_filename; /* Name of capture file */
guint32 cf_count; /* Total number of frames */
guint32 cf_framenr; /**< Currently displayed frame number */
gboolean frame_passed_dfilter; /**< true = display, false = no display */
You may be able to interpret the cf_filename and cf_state values to give you what you need.
The plugin_if_get_ws_info code has been accepted and merged but it’s not in 2.0.1. It’s in the latest
git pull and I guess will be in 2.0.2.