matcher: add user callback and support implicit index/key compares
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Jan 2014 15:39:20 +0000 (15:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Jan 2014 15:41:29 +0000 (15:41 +0000)
commit560afcf584db83ce828b2c44a78b9f20a6fc96dc
treee8a08432fe3af7a0a9bcf71c47cdbbc8d28dd325
parentbaeded13085b9cd2f5d866fbcfaee63a52144f07
matcher: add user callback and support implicit index/key compares

- introduced callback argument in jp_match() which is invoked for each found json item
- when chaining strings or numbers in or expressions, implicitely match them against the current key
matcher.c
matcher.h