Skip to content
Snippets Groups Projects
Commit 7afcf3a5 authored by Joe Hershberger's avatar Joe Hershberger Committed by Tom Rini
Browse files

env: Refactor apply into change_ok


Move the read of the old value to inside the check function.  In some
cases it can be avoided all together and at the least the code is only
called from one place.

Also name the function and the callback to more clearly describe what
it does.

Pass the ENTRY instead of just the name for direct access to the whole
data structure.

Pass an enum to the callback that specifies the operation being approved.

Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 3d3b52f2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment