]> git.buserror.net Git - polintos/scott/priv.git/blob - kernel/include/kern/console.h
Initial checkin from Perforce.
[polintos/scott/priv.git] / kernel / include / kern / console.h
1 #ifndef _KERN_CONSOLE_H
2 #define _KERN_CONSOLE_H
3
4 #include <kern/kernel.h>
5
6 namespace IO {
7 namespace Console {
8         class Console {
9         public:
10                 virtual ~Console()
11                 {
12                 }
13         
14                 virtual void write(Array<octet> buf, u64 *len) = 0;
15                 void write(char *data, size_t len);
16         };
17         
18         extern Console *primary_console;
19 }
20 }
21
22 #endif