blob: a2fbf49a0aab8a6b21d8b64788f9d15b67d55b40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef _STDIO_H_
#define _STDIO_H_
#include <stdarg.h>
#include <string.h>
#include <kernel/tty.h>
#include <printf_internal.h>
#include <kernel/serial.h>
#include "../../arch/x86/kernel/drivers/keyboard/include/kbbuf.h"
#define EOF (-1)
extern bool serial_debug;
int printf(const char* format, ...);
int sprintf(char* buf, const char* format, ...);
int print(const char* str);
int putc(const char c);
char getc(void); //for now void
class Debug
{
public:
static void set_serial_debug(bool state);
};
#endif
|