define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / workbench / wbinfo.c
blob0f5895714b06400e83a08557471ae3ef7fb6d755
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Open the file information window for a specified file.
6 */
8 #define DEBUG 0
10 #include <exec/types.h>
11 #include <exec/ports.h>
12 #include <utility/tagitem.h>
13 #include <dos/dos.h>
14 #include <workbench/workbench.h>
16 #include "workbench_intern.h"
17 #include "support.h"
19 #include <aros/debug.h>
21 /*****************************************************************************
23 NAME */
24 #include <proto/workbench.h>
26 AROS_LH3(BOOL, WBInfo,
27 /* SYNOPSIS */
28 AROS_LHA(BPTR, lock, A0),
29 AROS_LHA(CONST_STRPTR, name, A1),
30 AROS_LHA(struct Screen *, screen, A2),
32 /* LOCATION */
33 struct WorkbenchBase *, WorkbenchBase, 15, Workbench)
35 /* FUNCTION
37 INPUTS
39 RESULT
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 INTERNALS
51 ******************************************************************************/
53 AROS_LIBFUNC_INIT
55 // FIXME: screen argument is ignored
56 D(bug("WBInfo('%s', 0x%08lX)\n", name, lock));
57 return OpenWorkbenchObject
59 name[0] ? "WANDERER:Tools/Info" : "WANDERER:Tools/DiskInfo",
60 WBOPENA_ArgLock, (IPTR) lock,
61 WBOPENA_ArgName, (IPTR) name,
62 TAG_DONE
65 AROS_LIBFUNC_EXIT
66 } /* WBInfo() */