Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Gerlando Falauto's avatar
    c5983592
    env: add check/apply logic to himport_r() · c5983592
    Gerlando Falauto authored
    
    Change hashtable so that a callback function will decide whether a
    variable can be overwritten, and possibly apply the changes.
    
    So add a new field to struct hsearch_data:
    
     o "apply" callback function to check whether a variable can be
        overwritten, and possibly immediately apply the changes;
        when NULL, no check is performed.
    
    And a new argument to himport_r():
     o "do_apply": whether to call the apply callback function
    
    NOTE: This patch does not change the current behavior.
    
    Signed-off-by: default avatarGerlando Falauto <gerlando.falauto@keymile.com>
    Reviewed-by: default avatarMarek Vasut <marex@denx.de>
    c5983592
    History
    env: add check/apply logic to himport_r()
    Gerlando Falauto authored
    
    Change hashtable so that a callback function will decide whether a
    variable can be overwritten, and possibly apply the changes.
    
    So add a new field to struct hsearch_data:
    
     o "apply" callback function to check whether a variable can be
        overwritten, and possibly immediately apply the changes;
        when NULL, no check is performed.
    
    And a new argument to himport_r():
     o "do_apply": whether to call the apply callback function
    
    NOTE: This patch does not change the current behavior.
    
    Signed-off-by: default avatarGerlando Falauto <gerlando.falauto@keymile.com>
    Reviewed-by: default avatarMarek Vasut <marex@denx.de>