diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/color_filters.h | 18 | ||||
-rw-r--r-- | epan/prefs.h | 4 |
2 files changed, 4 insertions, 18 deletions
diff --git a/epan/color_filters.h b/epan/color_filters.h index b90f9fd285..650c3f3734 100644 --- a/epan/color_filters.h +++ b/epan/color_filters.h @@ -28,16 +28,9 @@ extern "C" { #endif /* __cplusplus */ -struct epan_dissect; +#include <wsutil/color.h> -/* - * Data structure holding RGB value for a color. - */ -typedef struct { - guint16 red; - guint16 green; - guint16 blue; -} color_t; +struct epan_dissect; #define CONVERSATION_COLOR_PREFIX "___conversation_color_filter___" /** @file @@ -60,13 +53,6 @@ typedef struct _color_filter { void *color_edit_dlg_info; /* if filter is being edited, ptr to req'd info. GTK+ only. */ } color_filter_t; -inline static unsigned int -color_t_to_rgb(const color_t *color) { - return (((color->red >> 8) << 16) - | ((color->green >> 8) << 8) - | (color->blue >> 8)); -} - /** A color filter was added (while importing). * (color_filters.c calls this for every filter coming in) * diff --git a/epan/prefs.h b/epan/prefs.h index e68b187d11..96546a188a 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -29,11 +29,11 @@ extern "C" { #include <glib.h> -#include "color_filters.h" - #include <epan/params.h> #include <epan/range.h> +#include <wsutil/color.h> + #include "ws_symbol_export.h" #define PR_DEST_CMD 0 |