Subversion Repositories Kolibri OS

Rev

Rev 9207 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9207 turbocat 1
#ifndef _SHELL_API_H_
2
#define _SHELL_API_H_
3
 
4
#include 
5
 
9766 turbocat 6
#define SHELL_OK   0
7
#define SHELL_EXIT 1
8
#define SHELL_PUTC 2
9
#define SHELL_PUTS 3
10
#define SHELL_GETC 4
11
#define SHELL_GETS 5
12
#define SHELL_CLS  6
13
#define SHELL_PID  7
14
#define SHELL_PING 8
9207 turbocat 15
 
9766 turbocat 16
#define SHELL_SHM_MAX 1024 * 16
9207 turbocat 17
 
9766 turbocat 18
extern char __shell_shm_name[32];
19
extern char* __shell_shm;
9207 turbocat 20
extern int __shell_is_init;
21
extern void __shell_init();
22
 
9766 turbocat 23
#define __SHELL_WAIT()   \
24
    while (*__shell_shm) \
25
    _ksys_delay(5)
9207 turbocat 26
 
9766 turbocat 27
extern int shell_ping();
9207 turbocat 28
extern unsigned shell_get_pid();
29
extern void shell_exit();
30
 
31
extern char shell_getc();
9766 turbocat 32
extern void shell_gets(char* str, int n);
9207 turbocat 33
 
34
extern void shell_putc(char c);
9766 turbocat 35
extern void shell_puts(const char* str);
36
extern void shell_printf(const char* format, ...);
9207 turbocat 37
 
38
extern void shell_cls();
39
#endif