mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +03:00
[ifmgmt] Use generic option-parsing library
Total cost: 66 bytes Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -21,10 +21,17 @@
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#include <ipxe/parseopt.h>
|
||||
|
||||
struct net_device;
|
||||
|
||||
struct ifcommon_options {};
|
||||
|
||||
extern struct option_descriptor ifcommon_opts[0];
|
||||
|
||||
extern int ifcommon_exec ( int argc, char **argv,
|
||||
struct command_descriptor *cmd,
|
||||
int ( * payload ) ( struct net_device * ),
|
||||
const char *verb );
|
||||
int stop_on_first_success );
|
||||
|
||||
#endif /* _IFMGMT_CMD_H */
|
||||
|
||||
@@ -229,6 +229,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_linux_smbios ( ERRFILE_OTHER | 0x001a0000 )
|
||||
#define ERRFILE_lotest ( ERRFILE_OTHER | 0x001b0000 )
|
||||
#define ERRFILE_config_cmd ( ERRFILE_OTHER | 0x001c0000 )
|
||||
#define ERRFILE_ifmgmt_cmd ( ERRFILE_OTHER | 0x001d0000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user