projects
/
oweals
/
jsonpath.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
matcher: add user callback and support implicit index/key compares
[oweals/jsonpath.git]
/
matcher.h
diff --git
a/matcher.h
b/matcher.h
index 41872415266a9978cf0e405301b555cb164b1c64..5dc2869f12fe3a37cc87b2d23bd1cd20d3a3b98a 100644
(file)
--- a/
matcher.h
+++ b/
matcher.h
@@
-28,7
+28,10
@@
#include "parser.h"
#include "parser.h"
+typedef void (*jp_match_cb_t)(struct json_object *res, void *priv);
+
struct json_object *
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
#endif