home *** CD-ROM | disk | FTP | other *** search
- //
- // $Log: ui-shell.h,v $
- // Revision 1.3 1994/10/04 01:14:04 hakan
- // Wurx
- //
- // Revision 1.2 1994/09/10 23:29:04 hakan
- // Still debugging
- //
- // Revision 1.1 1994/06/14 20:38:43 hakan
- // Initial revision
- //
- //
-
-
-
- enum options
- {
- OPT_OWNER,
- OPT_IPADDR,
- OPT_KICKSTART,
- OPT_WORKBENCH,
- OPT_NIPC,
- OPT_FAST_MEM,
- OPT_CHIP_MEM,
- OPT_PROCESSOR,
- OPT_CHIPS,
- OPT_SERVICES,
- OPT_ENTITIES,
-
- OPT_ALL,
-
- OPT_SCAN_REALMS,
- OPT_SCAN_HOSTS,
- OPT_SCAN_ALL,
- OPT_SCAN_PING,
-
- OPT_KLUDGE,
- OPT_SAVEFILE,
- OPT_MAX_TIME,
- OPT_MAX_PACKETS,
- OPT_REALMS,
-
- OPT_COUNT,
- };
-
-
- enum scanmodes
- {
- MODE_SCAN_REALMS,
- MODE_SCAN_HOSTS,
- MODE_SCAN_ALL,
- MODE_SCAN_PING,
- };
-
-
-
- // #define _DEBUG_READARGS_
- #ifdef _DEBUG_READARGS_
- #define SetOption(a,b,c) if (opts [a]) { NP_Config |= b; printf ("%s set\n", c);}
- #define SetMode(a,b,c) if (opts [a]) { scanmode = b; printf ("Scanmode: %s\n", c); }
- #define SetNum(a,b,c) if (opts [a]) { b = *(long*) opts[a]; printf ("Variable %s set to %d\n", c, b);}
- #else
- #define SetOption(a,b,c) if (opts [a]) { NP_Config |= b; }
- #define SetMode(a,b,c) if (opts [a]) { scanmode = b; }
- #define SetNum(a,b,c) if (opts [a]) { b = *(long*) opts[a]; }
- #endif
-