Public Attributes | List of all members
core_data Struct Reference

Structure to transfer data between core and UI threads. More...

Collaboration diagram for core_data:
Collaboration graph

Public Attributes

unsigned int cookie
 
int result
 
size_t size
 
void * data
 

Detailed Description

Structure to transfer data between core and UI threads.

This structure is moved between the UI and the core threads. Before every access to it, a mutex must be locked with core_mutex_lock() .

After a command was completed that was delegated to the core thread, the core calls ui_wakeup() and the UI uses the cookie field of this structure to queue the corresponding callback for the command.

Definition at line 65 of file core.h.

Member Data Documentation

◆ cookie

unsigned int core_data::cookie

UI callback cookie

Definition at line 67 of file core.h.

◆ data

void* core_data::data

Pointer to data

Definition at line 70 of file core.h.

◆ result

int core_data::result

Result (zero on success, negative on error)

Definition at line 68 of file core.h.

◆ size

size_t core_data::size

Size of data

Definition at line 69 of file core.h.


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

Generated at 2024-04-27 using  doxygen