matcher: add user callback and support implicit index/key compares
[oweals/jsonpath.git] / matcher.h
index 41872415266a9978cf0e405301b555cb164b1c64..5dc2869f12fe3a37cc87b2d23bd1cd20d3a3b98a 100644 (file)
--- a/matcher.h
+++ b/matcher.h
 
 #include "parser.h"
 
+typedef void (*jp_match_cb_t)(struct json_object *res, void *priv);
+
 struct json_object *
-jp_match(struct jp_opcode *path, struct json_object *jsobj);
+jp_match(struct jp_opcode *path, struct json_object *jsobj,
+         jp_match_cb_t cb, void *priv);
 
 #endif