loader: remove shouting from ORB's variable name
[hvf.git] / cp / include / shell.h
blob302ff9acd54afee72894b41fd968148ce1a11211
1 /*
2 * (C) Copyright 2007-2011 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
5 * details.
6 */
8 #ifndef __SHELL_H
9 #define __SHELL_H
11 #include <directory.h>
12 #include <vcpu.h>
13 #include <vdevice.h>
15 #define SHELL_CMD_MAX_LEN 8
18 * This file should contain only externally (from CP's point of view)
19 * visible interfaces.
21 extern struct console *oper_con;
23 extern int shell_start(void *data);
25 extern int invoke_shell_cmd(struct virt_sys *sys, char *cmd, int len);
26 extern int invoke_shell_logon(struct console *con, char *cmd, int len);
28 #define SHELL_CMD_AUTH(s,a) do { \
29 if (!((s)->directory->auth & AUTH_##a)) \
30 return -EPERM; \
31 } while(0)
33 #endif