summaryrefslogtreecommitdiffstats
path: root/include/expression.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/expression.h')
-rw-r--r--include/expression.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h
index 23d6bd23..15af35e8 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -9,6 +9,7 @@
#include <datatype.h>
#include <utils.h>
#include <list.h>
+#include <json.h>
/**
* enum expr_types
@@ -154,6 +155,8 @@ struct expr_ops {
enum byteorder byteorder);
void (*print)(const struct expr *expr,
struct output_ctx *octx);
+ json_t *(*json)(const struct expr *expr,
+ struct output_ctx *octx);
bool (*cmp)(const struct expr *e1,
const struct expr *e2);
void (*pctx_update)(struct proto_ctx *ctx,