mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
[settings] Explicitly separate the concept of a completed fetched setting
The fetch_setting() family of functions may currently modify the definition of the specified setting (e.g. to add missing type information). Clean up this interface by requiring callers to provide an explicit buffer to contain the completed definition of the fetched setting, if required. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -51,7 +51,7 @@ static int guestinfo_channel;
|
||||
*/
|
||||
static int guestinfo_fetch_type ( struct settings *settings,
|
||||
struct setting *setting,
|
||||
struct setting_type *type,
|
||||
const struct setting_type *type,
|
||||
void *data, size_t len, int *found ) {
|
||||
const char *parent_name = settings->parent->name;
|
||||
char command[ 24 /* "info-get guestinfo.ipxe." */ +
|
||||
|
||||
Reference in New Issue
Block a user