Code

store: Make matchers more generic and applicable to non-hosts as well.
authorSebastian Harl <sh@tokkee.org>
Mon, 28 Jul 2014 21:36:05 +0000 (23:36 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 28 Jul 2014 21:36:05 +0000 (23:36 +0200)
commit3da6e0cdfaba4755f5d272100e95528d33aae322
tree414eb1d13d0b92132413236b1b46a70851fa26c5
parent88281ca69be18cdd05acb7fff580f40c091e49f5
store: Make matchers more generic and applicable to non-hosts as well.

Most of the matchers are actually not specific to hosts and may be re-used for
different purposes (e.g. filters). Make them applicable to arbitrary object
types (again) and only check for the right object type when actually needed.

Added simple unit-tests covering filters applied to all types of objects.
src/core/store-private.h
src/core/store_lookup.c
t/unit/core/store_lookup_test.c