Furi: getter for current thread stdout write callback (#2344)

This commit is contained in:
Milk-Cool
2023-01-30 10:54:15 +03:00
committed by GitHub
parent a8e5f22500
commit b1496ee9bd
3 changed files with 15 additions and 2 deletions

View File

@@ -530,6 +530,12 @@ bool furi_thread_set_stdout_callback(FuriThreadStdoutWriteCallback callback) {
return true;
}
FuriThreadStdoutWriteCallback furi_thread_get_stdout_callback() {
FuriThread* thread = furi_thread_get_current();
return thread->output.write_callback;
}
size_t furi_thread_stdout_write(const char* data, size_t size) {
FuriThread* thread = furi_thread_get_current();