mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
5e23de8393
(cherry picked from commit 98d617b5f3)
24 lines
594 B
C
24 lines
594 B
C
#ifndef PSXRECOMP_GUEST_TTY_H
|
|
#define PSXRECOMP_GUEST_TTY_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Bounded observability sink for bytes emitted through the PS1 guest console.
|
|
* Writers never block. A snapshot returns the newest complete byte window and
|
|
* the monotonically increasing total number of bytes observed. */
|
|
void psx_guest_tty_putchar(uint8_t value);
|
|
size_t psx_guest_tty_snapshot(uint8_t *out, size_t capacity,
|
|
uint64_t *total_bytes);
|
|
void psx_guest_tty_reset(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|