Avoid including <epan/range.h> in dissectors.

svn path=/trunk/; revision=54315
This commit is contained in:
Jakub Zawadzki 2013-12-20 23:25:36 +00:00
parent 064082e68a
commit 90858e3058
3 changed files with 6 additions and 4 deletions

View File

@ -56,6 +56,7 @@
#include <epan/reassemble.h>
#include <epan/stream.h>
#include <epan/expert.h>
#include <epan/range.h>
static gint proto_malformed = -1;
static dissector_handle_t frame_handle = NULL;

View File

@ -34,12 +34,13 @@
#include "column-utils.h"
#include "tfs.h"
#include "ws_symbol_export.h"
#include "range.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct epan_range;
/** @defgroup packet General Packet Dissection
*
* @{
@ -221,7 +222,7 @@ WS_DLL_PUBLIC void dissector_add_uint(const char *abbrev, const guint32 pattern,
dissector_handle_t handle);
/* Add an range of entries to a uint dissector table. */
WS_DLL_PUBLIC void dissector_add_uint_range(const char *abbrev, range_t *range,
WS_DLL_PUBLIC void dissector_add_uint_range(const char *abbrev, struct epan_range *range,
dissector_handle_t handle);
/* Delete the entry for a dissector in a uint dissector table
@ -230,7 +231,7 @@ WS_DLL_PUBLIC void dissector_delete_uint(const char *name, const guint32 pattern
dissector_handle_t handle);
/* Delete an range of entries from a uint dissector table. */
WS_DLL_PUBLIC void dissector_delete_uint_range(const char *abbrev, range_t *range,
WS_DLL_PUBLIC void dissector_delete_uint_range(const char *abbrev, struct epan_range *range,
dissector_handle_t handle);
/* Delete all entries from a dissector table. */

View File

@ -47,7 +47,7 @@ typedef struct range_admin_tag {
} range_admin_t;
/** user specified range(s) */
typedef struct range {
typedef struct epan_range {
guint nranges; /**< number of entries in ranges */
range_admin_t ranges[1]; /**< variable-length array */
} range_t;