-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSC_FAT_VIEW Add config supprt #3236
MSC_FAT_VIEW Add config supprt #3236
Conversation
Signed-off-by: Jerzy Kasenberg <[email protected]>
d34dd41
to
62701dd
Compare
This update msc_fat_view so: - statically added entries (link tables) can be hidden if valid() tells to hide - there was only one handler that could take care of writes to unallocated disk area. Now several can be used (image write, config write, possible U2C)
Update handler in separate file, code was part of msc_fat_view.c
62701dd
to
e835c9f
Compare
}; | ||
|
||
static void | ||
config_text_export(char *name, char *val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick could be constified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function prototype matches typedef from config/config.h
/**
* Called per-configuration variable being exported.
*
* @param name The name of the variable to export
* @param val The value of the variable to export
*/
typedef void (*conf_export_func_t)(char *name, char *val);```
{ | ||
int name_len = strlen(name); | ||
int val_len = 0; | ||
if (val) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Code allows to write back configuration. Signed-off-by: Jerzy Kasenberg <[email protected]>
e835c9f
to
b15c3a6
Compare
Code adds
CONFIG.TXT
file to FAT view.File contains values available via conf API