summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
Commit message (Collapse)AuthorAgeFilesLines
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-182-0/+4
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* [tables] Incorporate table data type information into table definitionMichael Brown2009-03-131-3/+2Star
| | | | | | | Eliminate the potential for mismatches between table names and the table entry data type by incorporating the data type into the definition of the table, rather than specifying it explicitly in each table accessor method.
* [tables] Redefine methods for accessing linker tablesMichael Brown2009-03-131-6/+5Star
| | | | | | | | | | | | | | | Intel's C compiler (icc) chokes on the zero-length arrays that we currently use as part of the mechanism for accessing linker table entries. Abstract away the zero-length arrays, to make a port to icc easier. Introduce macros such as for_each_table_entry() to simplify the common case of iterating over all entries in a linker table. Represent table names as #defined string constants rather than unquoted literals; this avoids visual confusion between table names and C variable or type names, and also allows us to force a compilation error in the event of incorrect table names.
* [login] Add "login" command and UIMichael Brown2009-02-171-0/+135
|
* [editbox] Allow for password widgets that do not display their contentsMichael Brown2009-02-171-1/+1
|
* [Settings] Remove assumption that all settings have DHCP tag valuesMichael Brown2008-03-251-16/+15Star
| | | | | | | | | | | | Allow for settings to be described by something other than a DHCP option tag if desirable. Currently used only for the MAC address setting. Separate out fake DHCP packet creation code from dhcp.c to fakedhcp.c. Remove notion of settings from dhcppkt.c. Rationalise dhcp.c to use settings API only for final registration of the DHCP options, rather than using {store,fetch}_setting throughout.
* [Settings] Add settings hierarchyMichael Brown2008-03-201-5/+5
| | | | | | | | Add the notion of the settings hierarchy, complete with register/unregister routines. Rename set->store and get->fetch to avoid naming conflicts with get/put as used in reference counting.
* [Settings] Start revamping the configuration settings API.Michael Brown2008-03-201-43/+37Star
| | | | | | | | | | | | | | | | Add the concept of an abstract configuration setting, comprising a (DHCP) tag value and an associated byte sequence. Add the concept of a settings namespace. Add functions for extracting string, IPv4 address, and signed and unsigned integer values from configuration settings (analogous to dhcp_snprintf(), dhcp_ipv4_option(), etc.). Update functions for parsing and formatting named/typed options to work with new settings API. Update NVO commands and config UI to use new settings API.
* [Settings] show_setting() functions return snprintf()-style length.Michael Brown2008-03-181-1/+1
| | | | | | show_setting() and related functions now return an "actual length" in the style of snprintf(). This is to allow consumers to allocate buffers large enough to hold the formatted setting.
* __nonnull changesHolger Lubitz2007-08-201-1/+18
|
* Warnings purge: src/{crypto,hci,net}Marty Connor2007-07-031-0/+1
|
* Add "name" field to struct device to allow human-readable hardware deviceMichael Brown2007-01-101-4/+4
| | | | | | | | | | | names. Add "dev" pointer in struct net_device to tie network interfaces back to a hardware device. Force natural alignment of data types in __table() macros. This seems to prevent gcc from taking the unilateral decision to occasionally increase their alignment (which screws up the table packing).
* Use getkey() and symbolic key names.Michael Brown2006-12-201-6/+8
|
* settings_ui() now returns a status code.Michael Brown2006-12-201-4/+8
|
* Add instruction row, and save optionMichael Brown2006-12-201-17/+58
|
* Clear message on alert row before printing new oneMichael Brown2006-12-201-0/+1
|
* Added descriptive text for settings and setting types, and display it inMichael Brown2006-12-201-7/+70
| | | | the option config UI.
* Move {show,set,clear}_setting() to {show,set,clear}_named_setting().Michael Brown2006-12-201-6/+4Star
| | | | | | | | Introduce new {show,set,clear}_setting() that take a struct setting * rather than a const char *. set_setting() handles calling clear_setting() when appropriate, so that individual setting types don't have to check for empty strings.
* Alert when saving settings failsMichael Brown2006-12-201-5/+27
|
* Add (partly-functional) user interface for editing configuration settingsMichael Brown2006-12-201-0/+285