From 398a6e9a50c1b2afedaa104c38b8a4a18447d430 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 21 Nov 2010 22:14:28 +0000 Subject: [ifmgmt] Use generic option-parsing library Total cost: 66 bytes Signed-off-by: Michael Brown --- src/include/hci/ifmgmt_cmd.h | 9 ++++++++- src/include/ipxe/errfile.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/hci/ifmgmt_cmd.h b/src/include/hci/ifmgmt_cmd.h index e9c810ab7..a7751cb28 100644 --- a/src/include/hci/ifmgmt_cmd.h +++ b/src/include/hci/ifmgmt_cmd.h @@ -21,10 +21,17 @@ FILE_LICENCE ( GPL2_OR_LATER ); +#include + 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 */ diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 5b989ed2b..e475eca5f 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.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 ) /** @} */ -- cgit v1.2.3-55-g7522