18#include <epan/fifo_string_cache.h>
56 cf_cb_file_read_started,
57 cf_cb_file_read_finished,
58 cf_cb_file_reload_started,
59 cf_cb_file_reload_finished,
60 cf_cb_file_rescan_started,
61 cf_cb_file_rescan_finished,
62 cf_cb_file_retap_started,
63 cf_cb_file_retap_finished,
64 cf_cb_file_merge_started,
65 cf_cb_file_merge_finished,
66 cf_cb_file_fast_save_finished,
67 cf_cb_file_save_started,
68 cf_cb_file_save_finished,
69 cf_cb_file_save_failed,
70 cf_cb_file_save_stopped
73typedef void (*cf_callback_t) (
int event,
void *data,
void *user_data);
269 unsigned save_format,
270 wtap_compression_type compression_type,
271 bool discard_comments,
291 unsigned save_format,
292 wtap_compression_type compression_type);
432 print_range_selected_only,
433 print_range_marked_only,
434 print_range_all_displayed,
435 print_range_all_captured
440 print_format_e format;
447 bool print_col_headings;
448 print_dissections_e print_dissections;
451 unsigned hexdump_options;
465 bool show_progress_bar);
523 search_direction dir,
bool multiple);
544 search_direction dir);
558 size_t string_size, search_direction dir,
571 search_direction dir,
bool start_current);
583 search_direction dir);
686 int in_file_count,
const char *
const *in_filenames,
687 int file_type,
bool do_append);
char * cf_get_basename(capture_file *cf)
Definition file.c:1092
void cf_unmark_frame(capture_file *cf, frame_data *frame)
Definition file.c:4987
cf_print_status_t cf_write_csv_packets(capture_file *cf, print_args_t *print_args)
Definition file.c:3025
bool cf_goto_frame(capture_file *cf, unsigned row, bool exact)
Definition file.c:4776
cf_read_status_t
Definition file.h:32
@ CF_READ_ERROR
Definition file.h:34
@ CF_READ_OK
Definition file.h:33
@ CF_READ_ABORTED
Definition file.h:35
bool cf_find_packet_marked(capture_file *cf, search_direction dir)
Definition file.c:4562
void cf_update_section_comments(capture_file *cf, unsigned shb_idx, char **comments)
Definition file.c:5058
uint32_t cf_comment_types(capture_file *cf)
Definition file.c:5177
cf_status_t cf_reload(capture_file *cf)
Definition file.c:6063
bool cf_has_unsaved_data(capture_file *cf)
Definition file.c:5388
cf_print_status_t cf_print_packets(capture_file *cf, print_args_t *print_args, bool show_progress_bar)
Definition file.c:2657
cf_read_status_t cf_continue_tail(capture_file *cf, volatile int to_read, wtap_rec *rec, Buffer *buf, int *err, fifo_string_cache_t *frame_dup_cache, GChecksum *frame_cksum)
bool cf_find_packet_data(capture_file *cf, const uint8_t *string, size_t string_size, search_direction dir, bool multiple)
Definition file.c:3588
void cf_close(capture_file *cf)
Definition file.c:346
void cf_set_drops_known(capture_file *cf, bool drops_known)
Definition file.c:1185
cf_read_status_t cf_retap_packets(capture_file *cf)
Definition file.c:2355
cf_print_status_t cf_write_psml_packets(capture_file *cf, print_args_t *print_args)
Definition file.c:2941
void cf_set_tempfile_source(capture_file *cf, char *source)
Definition file.c:1139
void cf_reftime_packets(capture_file *cf)
Definition file.c:2101
bool cf_get_drops_known(capture_file *cf)
Definition file.c:1199
uint32_t cf_get_drops(capture_file *cf)
Definition file.c:1206
bool cf_goto_framenum(capture_file *cf)
Definition file.c:4876
bool cf_set_modified_block(capture_file *cf, frame_data *fd, const wtap_block_t new_block)
Definition file.c:5137
bool cf_can_save(capture_file *cf)
Definition file.c:5326
int cf_get_packet_count(capture_file *cf)
Definition file.c:1164
void cf_callback_add(cf_callback_t func, void *user_data)
Definition file.c:184
void cf_ignore_frame(capture_file *cf, frame_data *frame)
Definition file.c:5000
bool cf_find_packet_time_reference(capture_file *cf, search_direction dir)
Definition file.c:4575
cf_read_status_t cf_finish_tail(capture_file *cf, wtap_rec *rec, Buffer *buf, int *err, fifo_string_cache_t *frame_dup_cache, GChecksum *frame_cksum)
cf_status_t cf_merge_files_to_tempfile(void *pd_window, const char *temp_dir, char **out_filenamep, int in_file_count, const char *const *in_filenames, int file_type, bool do_append)
Definition file.c:1482
cf_print_status_t cf_write_pdml_packets(capture_file *cf, print_args_t *print_args)
Definition file.c:2863
cf_print_status_t cf_write_carrays_packets(capture_file *cf, print_args_t *print_args)
Definition file.c:3095
bool cf_add_ip_name_from_string(capture_file *cf, const char *addr, const char *name)
Definition file.c:5211
void cf_set_max_records(unsigned max_records)
Definition file.c:150
field_info * cf_find_string_protocol_tree(capture_file *cf, proto_tree *tree)
Definition file.c:3247
bool cf_read_record(capture_file *cf, const frame_data *fdata, wtap_rec *rec, Buffer *buf)
Definition file.c:1621
void cf_mark_frame(capture_file *cf, frame_data *frame)
Definition file.c:4974
void cf_unselect_packet(capture_file *cf)
Definition file.c:4952
unsigned long cf_get_computed_elapsed(capture_file *cf)
Definition file.c:215
bool cf_can_save_as(capture_file *cf)
Definition file.c:5365
bool cf_read_current_record(capture_file *cf)
Definition file.c:1649
const char * cf_get_tempfile_source(capture_file *cf)
Definition file.c:1153
void cf_set_rfcode(capture_file *cf, dfilter_t *rfcode)
Definition file.c:1212
void cf_set_drops(capture_file *cf, uint32_t drops)
Definition file.c:1192
bool cf_find_packet_summary_line(capture_file *cf, const char *string, search_direction dir)
Definition file.c:3480
void cf_fake_continue_tail(capture_file *cf)
cf_print_status_t cf_write_json_packets(capture_file *cf, print_args_t *print_args)
Definition file.c:3164
void cf_set_tempfile(capture_file *cf, bool is_tempfile)
Definition file.c:1177
cf_read_status_t cf_read(capture_file *cf, bool reloading)
Definition file.c:483
char * cf_get_display_name(capture_file *cf)
Definition file.c:1066
bool cf_is_tempfile(capture_file *cf)
Definition file.c:1171
cf_write_status_t cf_export_specified_packets(capture_file *cf, const char *fname, packet_range_t *range, unsigned save_format, wtap_compression_type compression_type)
Definition file.c:5928
cf_status_t
Definition file.h:26
@ CF_ERROR
Definition file.h:28
@ CF_OK
Definition file.h:27
cf_status_t cf_open(capture_file *cf, const char *fname, unsigned int type, bool is_tempfile, int *err)
Definition file.c:242
cf_status_t cf_filter_packets(capture_file *cf, char *dfilter, bool force)
Definition file.c:1518
void cf_callback_remove(cf_callback_t func, void *user_data)
Definition file.c:196
void cf_unignore_frame(capture_file *cf, frame_data *frame)
Definition file.c:5013
bool cf_find_packet_protocol_tree(capture_file *cf, const char *string, search_direction dir, bool multiple)
Definition file.c:3221
bool cf_can_write_with_wiretap(capture_file *cf)
Definition file.c:5297
void cf_update_section_comment(capture_file *cf, char *comment)
Definition file.c:5026
cf_write_status_t cf_save_records(capture_file *cf, const char *fname, unsigned save_format, wtap_compression_type compression_type, bool discard_comments, bool dont_reopen)
Definition file.c:5574
bool cf_find_packet_dfilter(capture_file *cf, dfilter_t *sfcode, search_direction dir, bool start_current)
Definition file.c:4505
void cf_redissect_packets(capture_file *cf)
Definition file.c:1595
cf_print_status_t
Definition file.h:46
@ CF_PRINT_OPEN_ERROR
Definition file.h:48
@ CF_PRINT_WRITE_ERROR
Definition file.h:49
@ CF_PRINT_OK
Definition file.h:47
void cf_select_packet(capture_file *cf, frame_data *frame)
Definition file.c:4900
cf_write_status_t
Definition file.h:39
@ CF_WRITE_OK
Definition file.h:40
@ CF_WRITE_ERROR
Definition file.h:41
@ CF_WRITE_ABORTED
Definition file.h:42
bool cf_read_record_no_alert(capture_file *cf, const frame_data *fdata, wtap_rec *rec, Buffer *buf)
Definition file.c:1635
bool cf_find_packet_dfilter_string(capture_file *cf, const char *filter, search_direction dir)
Definition file.c:4512
Definition dfilter-int.h:35
Definition fifo_string_cache.h:24
Definition packet_range.h:39
Definition print_stream.h:43
Definition wtap_opttypes.c:85