summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2010-11-21 23:14:28 +0100
committerMichael Brown2010-11-22 00:37:49 +0100
commit398a6e9a50c1b2afedaa104c38b8a4a18447d430 (patch)
tree72988579692bbc04853307cd30ee0b97dc2a877d /src/include
parent[settings] Use generic option-parsing library (diff)
downloadipxe-398a6e9a50c1b2afedaa104c38b8a4a18447d430.tar.gz
ipxe-398a6e9a50c1b2afedaa104c38b8a4a18447d430.tar.xz
ipxe-398a6e9a50c1b2afedaa104c38b8a4a18447d430.zip
[ifmgmt] Use generic option-parsing library
Total cost: 66 bytes Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/hci/ifmgmt_cmd.h9
-rw-r--r--src/include/ipxe/errfile.h1
2 files changed, 9 insertions, 1 deletions
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 <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 */
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 )
/** @} */