X-Git-Url: https://git.librecmc.org/?p=oweals%2Fjsonpath.git;a=blobdiff_plain;f=matcher.h;h=c3ca4cb21efcde1eaac2c78069601a2be43dc763;hp=41872415266a9978cf0e405301b555cb164b1c64;hb=cdc760c58077f44fc40adbbe41e1556a67c1b9a9;hpb=ba3e89199b78c33fc5b0dce6a4456096c71c2e19 diff --git a/matcher.h b/matcher.h index 4187241..c3ca4cb 100644 --- a/matcher.h +++ b/matcher.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -26,9 +26,12 @@ #include #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