summaryrefslogtreecommitdiffstats
path: root/include/datatype.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/datatype.h')
-rw-r--r--include/datatype.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h
index 53889934..8a123631 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -117,6 +117,12 @@ extern struct error_record *symbol_parse(const struct expr *sym,
struct expr **res);
extern void datatype_print(const struct expr *expr);
+static inline bool datatype_equal(const struct datatype *d1,
+ const struct datatype *d2)
+{
+ return d1->type == d2->type;
+}
+
/**
* struct symbolic_constant - symbol <-> constant mapping
*
@@ -168,4 +174,7 @@ extern const struct datatype inet_service_type;
extern const struct datatype mark_type;
extern const struct datatype time_type;
+extern const struct datatype *concat_type_alloc(const struct expr *expr);
+extern void concat_type_destroy(const struct datatype *dtype);
+
#endif /* NFTABLES_DATATYPE_H */