Skip to content
Snippets Groups Projects
Commit c5983592 authored by Gerlando Falauto's avatar Gerlando Falauto Committed by Tom Rini
Browse files

env: add check/apply logic to himport_r()


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>
parent 348b1f1c
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