Skip to content
  • Joe Hershberger's avatar
    env: Refactor apply into change_ok · 7afcf3a5
    Joe Hershberger authored
    
    
    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>
    7afcf3a5