ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
screen_snapshot_t Struct Reference

When code needs to work with media snapshot slot, it keeps busy, snapshot, capacity here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

Data Fields

_Atomic unsigned references
media_snapshot_slot_t * slot
screen_terminal_t * terminal
uint64_t frame_id
uint64_t submitted_ns
uint64_t acquisition_started_ns
terminal_screen_config_t config
unsigned char header []

Detailed Description

When code needs to work with media snapshot slot, it keeps busy, snapshot, capacity here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

The useful part of screen terminal is in references, fd: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

Definition at line 68 of file tui/controller.c.

Field Documentation

◆ acquisition_started_ns

uint64_t screen_snapshot_t::acquisition_started_ns

Definition at line 72 of file tui/controller.c.

◆ config

terminal_screen_config_t screen_snapshot_t::config

Definition at line 372 of file terminal_screen.c.

Referenced by terminal_screen_render().

◆ frame_id

uint64_t screen_snapshot_t::frame_id

Definition at line 72 of file tui/controller.c.

◆ header

unsigned char screen_snapshot_t::header[]

Definition at line 373 of file terminal_screen.c.

Referenced by terminal_screen_render().

◆ references

_Atomic unsigned screen_snapshot_t::references

Definition at line 69 of file tui/controller.c.

Referenced by ui_controller_first_use_key().

◆ slot

media_snapshot_slot_t* screen_snapshot_t::slot

Definition at line 70 of file tui/controller.c.

◆ submitted_ns

uint64_t screen_snapshot_t::submitted_ns

Definition at line 72 of file tui/controller.c.

◆ terminal

screen_terminal_t* screen_snapshot_t::terminal

Definition at line 71 of file tui/controller.c.


The documentation for this struct was generated from the following files: