mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +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 */
|
||||
|
||||
Reference in New Issue
Block a user