[ifmgmt] Use generic option-parsing library

Total cost: 66 bytes

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2010-11-21 22:14:28 +00:00
parent 9e9c9adf10
commit 398a6e9a50
5 changed files with 219 additions and 97 deletions

View File

@@ -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 */