|
iPXE
|
Settings block operations. More...
#include <settings.h>
Data Fields | |
| struct settings *(* | redirect )(struct settings *settings) |
| Redirect to underlying settings block (if applicable) More... | |
| int(* | applies )(struct settings *settings, const struct setting *setting) |
| Check applicability of setting. More... | |
| int(* | store )(struct settings *settings, const struct setting *setting, const void *data, size_t len) |
| Store value of setting. More... | |
| int(* | fetch )(struct settings *settings, struct setting *setting, void *data, size_t len) |
| Fetch value of setting. More... | |
| void(* | clear )(struct settings *settings) |
| Clear settings block. More... | |
Settings block operations.
Definition at line 85 of file settings.h.
Redirect to underlying settings block (if applicable)
| settings | Settings block |
| settings | Underlying settings block |
Definition at line 91 of file settings.h.
Referenced by settings_target().
Check applicability of setting.
| settings | Settings block |
| setting | Setting |
| applies | Setting applies within this settings block |
Definition at line 98 of file settings.h.
Referenced by setting_applies().
| int( * settings_operations::store) (struct settings *settings, const struct setting *setting, const void *data, size_t len) |
Store value of setting.
| settings | Settings block |
| setting | Setting to store |
| data | Setting data, or NULL to clear setting |
| len | Length of setting data |
| rc | Return status code |
Definition at line 108 of file settings.h.
Referenced by store_setting().
| int( * settings_operations::fetch) (struct settings *settings, struct setting *setting, void *data, size_t len) |
Fetch value of setting.
| settings | Settings block |
| setting | Setting to fetch |
| data | Buffer to fill with setting data |
| len | Length of buffer |
| len | Length of setting data, or negative error |
The actual length of the setting will be returned even if the buffer was too small.
Definition at line 122 of file settings.h.
Referenced by fetch_setting().
Clear settings block.
| settings | Settings block |
Definition at line 128 of file settings.h.
Referenced by clear_settings().
1.8.15