2 Copyright © 2004-2010, The AROS Development Team. All rights reserved.
6 #include <dos/rdargs.h>
11 /*** Global Variables *******************************************************/
12 STATIC CONST_STRPTR TEMPLATE
=
13 "DEVICE,UNIT/N,SYSSIZE/K/N,SYSTYPE/K,SYSNAME/K,WORKSIZE/K/N,MAXWORK/S,WORKTYPE/K,WORKNAME/K,WIPE/S,FORCE/S,QUIET/S,RDB/S";
14 STATIC CONST LONG def_unit
= 0;
15 STATIC CONST TEXT def_sys_name
[] = "DH0";
16 STATIC CONST TEXT def_work_name
[] = "DH1";
17 STATIC IPTR args
[COUNT
] =
29 STATIC
struct RDArgs
*rdargs
;
31 /*** Functions **************************************************************/
32 BOOL
ReadArguments(VOID
)
34 rdargs
= ReadArgs(TEMPLATE
, args
, NULL
);
35 return rdargs
!= NULL
;
38 VOID
FreeArguments(VOID
)
43 IPTR
GetArgument(enum Argument id
)
45 if (id
>= 0 && id
< COUNT
) return args
[id
];