kernel: add c++ support

This commit is contained in:
2023-03-20 20:41:39 +00:00
parent a4d850cc03
commit 2bfb6bcd78
41 changed files with 333 additions and 38 deletions

View File

@@ -18,6 +18,10 @@
#include <socks/locks.h>
#include <socks/status.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum console_flags {
/* console is only used during the boot process. the console
will be automatically de-registered when the first
@@ -42,4 +46,8 @@ extern kern_status_t console_unregister(console_t *con);
extern void console_write(console_t *con, const char *s, unsigned int len);
extern int console_read(console_t *con, char *s, unsigned int len);
#ifdef __cplusplus
}
#endif
#endif