aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/syntax-tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dfilter/syntax-tree.h')
-rw-r--r--epan/dfilter/syntax-tree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dfilter/syntax-tree.h b/epan/dfilter/syntax-tree.h
index ef3dabcc17..3b97fe0bbb 100644
--- a/epan/dfilter/syntax-tree.h
+++ b/epan/dfilter/syntax-tree.h
@@ -54,6 +54,10 @@ typedef struct {
STTypeToStrFunc func_tostr;
} sttype_t;
+
+/* Lexical value is ambiguous (can be a protocol field or a literal). */
+#define STFLAG_UNPARSED (1 << 0)
+
/** Node (type instance) information */
typedef struct {
uint32_t magic;
@@ -63,6 +67,7 @@ typedef struct {
char *repr_display;
char *repr_debug;
df_loc_t location;
+ uint16_t flags;
} stnode_t;
typedef enum {
@@ -159,6 +164,12 @@ stnode_location(stnode_t *node);
void
stnode_set_location(stnode_t *node, df_loc_t loc);
+gboolean
+stnode_get_flags(stnode_t *node, uint16_t flags);
+
+void
+stnode_set_flags(stnode_t *node, uint16_t flags);
+
void
stnode_merge_location(stnode_t *dst, stnode_t *n1, stnode_t *n2);