White space changes.
[obnox/wireshark/wip.git] / file.h
diff --git a/file.h b/file.h
index c2d319e465c0bb71a0ddeecf1eab14ccf0c96d5d..facf0f1d40d76796108c9f959c836a9317769722 100644 (file)
--- a/file.h
+++ b/file.h
@@ -34,6 +34,9 @@
 
 #include "cfile.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
 
 /** Return values from functions that only can succeed or fail. */
 typedef enum {
@@ -71,6 +74,14 @@ typedef enum {
 
 typedef void (*cf_callback_t) (gint event, gpointer data, gpointer user_data);
 
+typedef struct {
+    const char    *string;
+    size_t         string_len;
+    capture_file  *cf;
+    gboolean       frame_matched;
+    field_info    *finfo;
+} match_data;
+
 extern void
 cf_callback_add(cf_callback_t func, gpointer user_data);
 
@@ -312,13 +323,6 @@ void cf_reftime_packets(capture_file *cf);
  */
 gulong cf_get_computed_elapsed(void);
 
-/**
- * The coloring rules have changed, redo coloring
- *
- * @param cf the capture file
- */
-void cf_colorize_packets(capture_file *cf);
-
 /**
  * "Something" has changed, rescan all packets.
  *
@@ -334,13 +338,6 @@ void cf_redissect_packets(capture_file *cf);
  */
 cf_read_status_t cf_retap_packets(capture_file *cf);
 
-/**
- * The time format has changed, rescan all packets.
- *
- * @param cf the capture file
- */
-void cf_change_time_formats(capture_file *cf);
-
 /**
  * Adjust timestamp precision if auto is selected.
  *
@@ -404,6 +401,17 @@ cf_print_status_t cf_write_carrays_packets(capture_file *cf, print_args_t *print
 gboolean cf_find_packet_protocol_tree(capture_file *cf, const char *string,
                                       search_direction dir);
 
+/**
+ * Find field with a label that contains text string cfile->sfilter.
+ *
+ * @param cf the capture file
+ * @param tree the protocol tree
+ * @param mdata the first field (mdata->finfo) that matched the string
+ * @return TRUE if a packet was found, FALSE otherwise
+ */
+extern gboolean cf_find_string_protocol_tree(capture_file *cf, proto_tree *tree,
+                                             match_data *mdata);
+
 /**
  * Find packet whose summary line contains a specified text string.
  *
@@ -471,18 +479,16 @@ gboolean cf_find_packet_time_reference(capture_file *cf, search_direction dir);
 /**
  * GoTo Packet in first row.
  *
- * @param cf the capture file
  * @return TRUE if the first row exists, FALSE otherwise
  */
-gboolean cf_goto_top_frame(capture_file *cf);
+gboolean cf_goto_top_frame(void);
 
 /**
  * GoTo Packet in last row.
  *
- * @param cf the capture file
  * @return TRUE if last row exists, FALSE otherwise
  */
-gboolean cf_goto_bottom_frame(capture_file *cf);
+gboolean cf_goto_bottom_frame(void);
 
 /**
  * GoTo Packet with the given row.
@@ -578,4 +584,8 @@ cf_merge_files(char **out_filename, int in_file_count,
 void read_keytab_file(const char *);
 #endif
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* file.h */