Switch to sqlite3's lemon parser generator.
[oweals/jsonpath.git] / matcher.h
index 41872415266a9978cf0e405301b555cb164b1c64..c3ca4cb21efcde1eaac2c78069601a2be43dc763 100644 (file)
--- a/matcher.h
+++ b/matcher.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright (C) 2013-2014 Jo-Philipp Wich <jow@openwrt.org>
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
        #include <json-c/json.h>
 #endif
 
-#include "parser.h"
+#include "ast.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