summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/json.h6
-rw-r--r--include/nftables.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/json.h b/include/json.h
index 20d6c2a4..41142208 100644
--- a/include/json.h
+++ b/include/json.h
@@ -111,6 +111,7 @@ void monitor_print_rule_json(struct netlink_mon_handler *monh,
int json_events_cb(const struct nlmsghdr *nlh,
struct netlink_mon_handler *monh);
+void json_alloc_echo(struct nft_ctx *ctx);
void json_print_echo(struct nft_ctx *ctx);
#else /* ! HAVE_LIBJANSSON */
@@ -251,6 +252,11 @@ static inline int json_events_cb(const struct nlmsghdr *nlh,
return -1;
}
+static inline void json_alloc_echo(struct nft_ctx *ctx)
+{
+ /* empty */
+}
+
static inline void json_print_echo(struct nft_ctx *ctx)
{
/* empty */
diff --git a/include/nftables.h b/include/nftables.h
index 3556728d..9095ff3d 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -122,6 +122,7 @@ struct nft_ctx {
void *scanner;
struct scope *top_scope;
void *json_root;
+ json_t *json_echo;
};
enum nftables_exit_codes {