Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / dos / cli.c
blob434db83df2397885d39d77466108bd8554d370f6
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <aros/debug.h>
11 #include <proto/exec.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/dos.h>
19 AROS_LH0(struct CommandLineInterface *, Cli,
21 /* SYNOPSIS */
23 /* LOCATION */
24 struct DosLibrary *, DOSBase, 82, Dos)
26 /* FUNCTION
27 Returns a pointer to the CLI structure of the current process.
29 INPUTS
31 RESULT
32 Pointer to CLI structure.
34 NOTES
35 Do not use this function to test if the process was started from
36 the shell. Check pr_CLI instead.
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 /* Get pointer to process structure */
51 struct Process *me = (struct Process *) FindTask(NULL);
53 ASSERT_VALID_PROCESS(me);
55 /* Make sure this is a process */
56 if (me->pr_Task.tc_Node.ln_Type == NT_PROCESS)
58 /* Nothing spectacular */
59 return (struct CommandLineInterface *) BADDR(me->pr_CLI);
61 else
63 return NULL;
66 AROS_LIBFUNC_EXIT
67 } /* Cli */