2009-06-19 02:21:08 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2007 Michael Brown <mbrown@fensystems.co.uk>.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
* License, or any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _IFMGMT_CMD_H
|
|
|
|
|
#define _IFMGMT_CMD_H
|
|
|
|
|
|
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
|
|
2010-11-21 22:14:28 +00:00
|
|
|
#include <ipxe/parseopt.h>
|
|
|
|
|
|
2009-06-19 02:21:08 -07:00
|
|
|
struct net_device;
|
|
|
|
|
|
2010-11-21 22:14:28 +00:00
|
|
|
struct ifcommon_options {};
|
|
|
|
|
|
|
|
|
|
extern struct option_descriptor ifcommon_opts[0];
|
|
|
|
|
|
2009-06-28 20:24:54 +01:00
|
|
|
extern int ifcommon_exec ( int argc, char **argv,
|
2010-11-21 22:14:28 +00:00
|
|
|
struct command_descriptor *cmd,
|
2009-06-28 20:24:54 +01:00
|
|
|
int ( * payload ) ( struct net_device * ),
|
2010-11-21 22:14:28 +00:00
|
|
|
int stop_on_first_success );
|
2009-06-19 02:21:08 -07:00
|
|
|
|
|
|
|
|
#endif /* _IFMGMT_CMD_H */
|