}
-/****************************************************************************************************************/
-/* other "dummies" */
-void
-cf_mark_frame(capture_file *cf _U_, frame_data *frame _U_)
-{
- /* shouldn't happen */
- g_assert_not_reached();
-}
-
/*
* Editor modelines
*
rtp_write_sample(&sample, tapinfo->save_file);
}
}
- /* TODO: This doesn't belong here. We really shouldn't refer to cf_mark_frame()
- * which only make sense if we're using the GTK UI backend. This effectively forces
- * tshark/rawshark to implement a cf_mark_frame() stub */
+#ifdef __GTK_H__
else if (tapinfo->mode == TAP_MARK) {
if (rtp_stream_info_cmp(&tmp_strinfo, tapinfo->filter_stream_fwd)==0
|| rtp_stream_info_cmp(&tmp_strinfo, tapinfo->filter_stream_rev)==0)
cf_mark_frame(&cfile, pinfo->fd);
}
}
-
+#endif
return 0;
}
capture_file cfile;
-void
-cf_mark_frame(capture_file *cf _U_, frame_data *frame _U_)
-{
- g_assert_not_reached();
-}
-
static void list_capture_types(void) {
int i;