diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2019-05-29 23:19:23 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2019-05-29 23:19:23 -0700 |
commit | 15fa5d5714ce286323f25468284be0b28136a3c8 (patch) | |
tree | 07caa9755fd5172d2d99781a4a25b49949c93f6c /include | |
parent | 7eceed2d2f8b99d8300ae828cb942f44f6351b03 (diff) |
libstage: s/match/lookup/g
Rather than having a per-node match function to facilitate stage
lookups by opaque keys returning a boolean result, make it a
more general lookup returning a stage_t *.
It's still basically a boolean, where NULL is a miss. But by
returning the stage_t *, it enables things like encapsulated
stages for caching purposes where a node might represent an
isolated stage it can propagate lookups down to and return
the results out of.
When the match function only returned a 1/0, and the outer
lookup machinery returned the current stage node on a hit,
there was no way to hand out arbitrary stage pointers.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions