mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-29 02:08:10 -07:00
[FL-3958] Stdio API improvements (#4110)
* improve thread stdio callback signatures * pipe stdout timeout * update api symbols Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
+6
-4
@@ -479,16 +479,18 @@ uint32_t furi_thread_get_stack_space(FuriThreadId thread_id);
|
||||
/**
|
||||
* @brief Get the standard output callback for the current thead.
|
||||
*
|
||||
* @return pointer to the standard out callback function
|
||||
* @param[out] callback where to store the stdout callback
|
||||
* @param[out] context where to store the context
|
||||
*/
|
||||
FuriThreadStdoutWriteCallback furi_thread_get_stdout_callback(void);
|
||||
void furi_thread_get_stdout_callback(FuriThreadStdoutWriteCallback* callback, void** context);
|
||||
|
||||
/**
|
||||
* @brief Get the standard input callback for the current thead.
|
||||
*
|
||||
* @return pointer to the standard in callback function
|
||||
* @param[out] callback where to store the stdin callback
|
||||
* @param[out] context where to store the context
|
||||
*/
|
||||
FuriThreadStdinReadCallback furi_thread_get_stdin_callback(void);
|
||||
void furi_thread_get_stdin_callback(FuriThreadStdinReadCallback* callback, void** context);
|
||||
|
||||
/** Set standard output callback for the current thread.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user