Client Side Functions
Functions
-
LGMP_STATUS lpKeepLGMPSessionAlive(PLPContext ctx, PTRFDisplay display)
-
int lpInitHost(PLPContext ctx, PTRFDisplay display, bool initShm)
Initialize LGMP Host for receiving data from libtrf.
- Parameters:
ctx – PLPContext to use
display – Display data received
initShm – Set to true if shm file needs to be initialized again
- Returns:
0 on success, negative error code on failure
-
int lpSignalFrameDone(PLPContext ctx, PTRFDisplay disp)
Signal that a frame is done writing to the LGMP client.
- Parameters:
ctx – Client context to use.
disp – Display data to write.
- Returns:
int
-
int lpRequestFrame(PLPContext ctx, PTRFDisplay disp)
Write data to shared memory.
- Parameters:
ctx – PLPContext to use
display – Display data to write
- Returns:
0 on success, negative error code on failure
-
int lpUpdateCursorPos(PLPContext ctx, KVMFRCursor *cur, uint32_t curSize, uint32_t flags)
Update host cursor position on the client.
- Parameters:
ctx – Context to use
cur – Cursor data
- Returns:
0 on success, negative error code on failure
-
int lpPostCursor(PLPContext ctx, uint32_t flags, PLGMPMemory mem)
Post Update to LGMP Client.
- Parameters:
ctx – Context to use
flags – Cursor Flags
mem – PLGMPMemory where cursor data is stored
- Returns:
0 on success, negative error code on failure
-
int lpInitShmFile(PLPContext ctx)
Open and Map SHM File.
- Parameters:
ctx – Context to use
- Returns:
0 on success, negative error code on failure
-
void lpShutdown(PLPContext ctx)
Shutdown all LGMP Host processes.
- Parameters:
ctx – Context to use
-
int lpReinitCursorThread(PLPContext ctx)
Reinitialize Cursor Thread.
- Parameters:
ctx – Context to pass through to the thread
- Returns:
0 on success, negative error code on failure,
-
void *lpCursorThread(void *arg)
Handle Cursor Data.
- Parameters:
arg – PLPContext