summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-05-29 12:39:24 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-05-29 12:39:24 -0700
commitb50c169621c3d6fba5c6ddf08a1acd80601c5c93 (patch)
tree75e2b7fa5d4ec7f5b4646da945bfce340d3cdc12 /include
parentfc879e25fd4b45ec3520b4bd0cbfb4bec4ad1590 (diff)
libstage: add stage, rename adopt->replace in stage_conf_t
In preparation for supporting caller-supplied stage memory, add another stage_t pointer to the conf called .stage. The naming of .adopt was always awkward and resulted from the reuse of the .parent pointer to indicate the stage to replace. Now that there's a .stage member, just rename .adopt to .replace, with the same semantics. At some point I need to firm up what .replace does with the other conf data. Currently, only the name, ops, and object, are updated. The existing active/locked/alpha etc are retained unchanged, ignored from the conf. This can be surprising/unexpected to someone performing a replace through the .conf, and it would probably be convenient to be able to set everything during a replace. So there should probably be a convenience helper for constructing a conf from an existing stage, which can then be overridden selectively while passing to a new().
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved