From 0861927ce30146be75bcb57b6939c0fd9fee43b3 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Fri, 4 Feb 2005 18:44:44 +0000 Subject: huge cleanup of capture file API (functions in file.c/file.h). This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289 --- gtk/find_dlg.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'gtk/find_dlg.c') diff --git a/gtk/find_dlg.c b/gtk/find_dlg.c index 44260c02d0..cfc5867495 100644 --- a/gtk/find_dlg.c +++ b/gtk/find_dlg.c @@ -633,7 +633,7 @@ find_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) cfile.summary_data = summary_data; if (cfile.hex) { - found_packet = find_packet_data(&cfile, bytes, nbytes); + found_packet = cf_find_packet_data(&cfile, bytes, nbytes); g_free(bytes); if (!found_packet) { /* We didn't find a packet */ @@ -648,7 +648,7 @@ find_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) /* OK, what are we searching? */ if (cfile.decode_data) { /* The text in the protocol tree */ - found_packet = find_packet_protocol_tree(&cfile, string); + found_packet = cf_find_packet_protocol_tree(&cfile, string); g_free(string); if (!found_packet) { /* We didn't find the packet. */ @@ -660,7 +660,7 @@ find_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) } } else if (cfile.summary_data) { /* The text in the summary line */ - found_packet = find_packet_summary_line(&cfile, string); + found_packet = cf_find_packet_summary_line(&cfile, string); g_free(string); if (!found_packet) { /* We didn't find the packet. */ @@ -672,7 +672,7 @@ find_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) } } else { /* The raw packet data */ - found_packet = find_packet_data(&cfile, string, strlen(string)); + found_packet = cf_find_packet_data(&cfile, string, strlen(string)); g_free(string); if (!found_packet) { /* We didn't find the packet. */ @@ -684,7 +684,7 @@ find_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) } } } else { - found_packet = find_packet_dfilter(&cfile, sfcode); + found_packet = cf_find_packet_dfilter(&cfile, sfcode); dfilter_free(sfcode); if (!found_packet) { /* We didn't find a packet */ @@ -732,20 +732,20 @@ find_previous_next(GtkWidget *w, gpointer d, gboolean sens) */ return; } - find_packet_data(&cfile, bytes, nbytes); + cf_find_packet_data(&cfile, bytes, nbytes); g_free(bytes); } else if (cfile.string) { string = convert_string_case(cfile.sfilter, cfile.case_type); /* OK, what are we searching? */ if (cfile.decode_data) { /* The text in the protocol tree */ - find_packet_protocol_tree(&cfile, string); + cf_find_packet_protocol_tree(&cfile, string); } else if (cfile.summary_data) { /* The text in the summary line */ - find_packet_summary_line(&cfile, string); + cf_find_packet_summary_line(&cfile, string); } else { /* The raw packet data */ - find_packet_data(&cfile, string, strlen(string)); + cf_find_packet_data(&cfile, string, strlen(string)); } g_free(string); } else { @@ -763,7 +763,7 @@ find_previous_next(GtkWidget *w, gpointer d, gboolean sens) */ return; } - find_packet_dfilter(&cfile, sfcode); + cf_find_packet_dfilter(&cfile, sfcode); dfilter_free(sfcode); } } else @@ -807,7 +807,7 @@ find_previous_next_frame_with_filter(char *filter, gboolean backwards) */ return; } - find_packet_dfilter(&cfile, sfcode); + cf_find_packet_dfilter(&cfile, sfcode); dfilter_free(sfcode); cfile.sbackward=sbackwards_saved; } -- cgit v1.2.3