aboutsummaryrefslogtreecommitdiffstats
path: root/epan/color_filters.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/color_filters.h')
-rw-r--r--epan/color_filters.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/epan/color_filters.h b/epan/color_filters.h
index 1cc09bcb27..b66edfda16 100644
--- a/epan/color_filters.h
+++ b/epan/color_filters.h
@@ -102,13 +102,31 @@ color_filters_tmp_color(guint8 filter_num);
WS_DLL_PUBLIC gboolean
color_filters_reset_tmp(gchar **err_msg);
-/* Prime the epan_dissect_t with all the compiler
+/* Prime the epan_dissect_t with all the compiled
* color filters of the current filter list.
*
* @param the epan dissector details
*/
WS_DLL_PUBLIC void color_filters_prime_edt(struct epan_dissect *edt);
+/** Check if any of the enabled compiled color filters of the current
+ * filter list depend on a given header field.
+ *
+ * @param hfid The header field ID to check
+ * @return TRUE if the color filter contains the header field.
+ */
+WS_DLL_PUBLIC gboolean
+color_filters_use_hfid(int hfid);
+
+/** Check if any of the enabled compiled color filters of the current
+ * filter list depend on any field in a given protocol.
+ *
+ * @param proto_id The protocol ID to check
+ * @return TRUE if the color filter contains a field from the protocol
+ */
+WS_DLL_PUBLIC gboolean
+color_filters_use_proto(int proto_id);
+
/** Colorize a specific packet.
*
* @param edt the dissected packet
@@ -119,7 +137,7 @@ color_filters_colorize_packet(struct epan_dissect *edt);
/** Clone the currently active filter list.
*
- * @param user_data will be returned by each call to to color_filter_add_cb()
+ * @param user_data will be returned by each call to color_filter_add_cb()
* @param add_cb the callback function to add color filter
*/
WS_DLL_PUBLIC void color_filters_clone(gpointer user_data, color_filter_add_cb_func add_cb);
@@ -127,7 +145,7 @@ WS_DLL_PUBLIC void color_filters_clone(gpointer user_data, color_filter_add_cb_f
/** Load filters (import) from some other filter file.
*
* @param path the path to the import file
- * @param user_data will be returned by each call to to color_filter_add_cb()
+ * @param user_data will be returned by each call to color_filter_add_cb()
* @param err_msg a string with error message
* @param add_cb the callback function to add color filter
* @return TRUE, if read succeeded
@@ -136,7 +154,7 @@ WS_DLL_PUBLIC gboolean color_filters_import(const gchar *path, gpointer user_dat
/** Read filters from the global filter file (not the users file).
*
- * @param user_data will be returned by each call to to color_filter_add_cb()
+ * @param user_data will be returned by each call to color_filter_add_cb()
* @param err_msg a string with error message
* @param add_cb the callback function to add color filter
* @return TRUE, if read succeeded