env: Add environment variable flags
Currently just validates variable types as decimal, hexidecimal,
boolean, ip address, and mac address.
If the entry is not found in the env ".flags", then look in the static
one. This allows the env to override the static definitions, but prevents
the need to have every definition in the environment distracting you.
Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com>
Showing
- README 37 additions, 0 deletionsREADME
- common/Makefile 2 additions, 0 deletionscommon/Makefile
- common/cmd_nvedit.c 1 addition, 49 deletionscommon/cmd_nvedit.c
- common/env_common.c 1 addition, 1 deletioncommon/env_common.c
- common/env_flags.c 319 additions, 0 deletionscommon/env_flags.c
- include/env_callback.h 2 additions, 0 deletionsinclude/env_callback.h
- include/env_default.h 3 additions, 0 deletionsinclude/env_default.h
- include/env_flags.h 76 additions, 0 deletionsinclude/env_flags.h
- include/environment.h 1 addition, 8 deletionsinclude/environment.h
- include/search.h 1 addition, 0 deletionsinclude/search.h
- lib/hashtable.c 4 additions, 0 deletionslib/hashtable.c
Loading
Please register or sign in to comment