Luna/kernel/src/arch/Serial.h
apio 814672c771
All checks were successful
continuous-integration/drone/push Build is passing
Remove some redundant error propagation
Why can printing to the serial port or format onto a string fail?
Even if cstyle_format returns Result<usize>, we shouldn't always follow suit.
2022-12-16 18:32:29 +01:00

14 lines
315 B
C++

#pragma once
#include <luna/Attributes.h>
#include <luna/Types.h>
template <typename T> class Result;
namespace Serial
{
void putchar(u8 c);
void write(const char* str, usize size);
void print(const char* str);
void println(const char* str);
usize printf(const char* str, ...) _format(1, 2);
}