3 * $Id: sw.h,v 1.3 2004/04/08 01:52:19 mdw Exp $
5 * Interface to main options parser
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of sw-tools.
14 * sw-tools is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * sw-tools is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with sw-tools; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 /*----- Data structures ---------------------------------------------------*/
38 /* --- About the commands list --- *
40 * Declare commands in the header file, like this:
43 * static cmd cmd_foo = { CMD_LINK, sw_foo, "foo\t\tDoes something." };
45 * # define CMD_LINK &cmd_foo
48 * This causes all the commands to be linked together at compile time, and is
49 * therefore a cool thing to do.
55 int (*cmd)(int /*argc*/, char */*argv*/[]);
59 /*----- Global variables --------------------------------------------------*/
61 extern const char *opt_arch; /* Value of `--arch' option */
62 extern const char *opt_output; /* Value of `--output' option */
63 extern unsigned int opt_flags; /* Various bitflag options */
72 /*----- That's all, folks -------------------------------------------------*/