2022-10-11 19:04:50 +00:00
|
|
|
#pragma once
|
|
|
|
#include "fs/VFS.h"
|
|
|
|
|
|
|
|
namespace ConsoleDevice
|
|
|
|
{
|
2022-10-12 08:54:46 +00:00
|
|
|
VFS::Node* create_new(const char* devname);
|
2022-10-11 19:04:50 +00:00
|
|
|
|
|
|
|
ssize_t write(VFS::Node* node, size_t offset, size_t size, const char* buffer);
|
2022-11-02 18:51:54 +00:00
|
|
|
|
|
|
|
ssize_t read(VFS::Node* node, size_t offset, size_t size, char* buffer);
|
|
|
|
|
|
|
|
int would_block(VFS::Node* node);
|
|
|
|
|
|
|
|
void append(char c);
|
2022-10-11 19:04:50 +00:00
|
|
|
}
|