summaryrefslogtreecommitdiffstats
path: root/epan/dfilter/sttype-slice.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dfilter/sttype-slice.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dfilter/sttype-slice.h')
-rw-r--r--epan/dfilter/sttype-slice.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/epan/dfilter/sttype-slice.h b/epan/dfilter/sttype-slice.h
new file mode 100644
index 0000000..005675d
--- /dev/null
+++ b/epan/dfilter/sttype-slice.h
@@ -0,0 +1,42 @@
+/** @file
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 2001 Gerald Combs
+ *
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef STTYPE_SLICE_H
+#define STTYPE_SLICE_H
+
+#include "syntax-tree.h"
+#include "drange.h"
+
+
+stnode_t *
+sttype_slice_entity(stnode_t *node);
+
+drange_t *
+sttype_slice_drange(stnode_t *node);
+
+drange_t *
+sttype_slice_drange_steal(stnode_t *node);
+
+/* Set a range */
+void
+sttype_slice_set(stnode_t *node, stnode_t *field, GSList* drange_list);
+
+void
+sttype_slice_set1(stnode_t *node, stnode_t *field, drange_node *rn);
+
+void
+sttype_slice_set_drange(stnode_t *node, stnode_t *field, drange_t *dr);
+
+/* Clear the 'drange' variable to remove responsibility for
+ * freeing it. */
+void
+sttype_slice_remove_drange(stnode_t *node);
+
+#endif