shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shApplicationHost.c File Reference
#include <shapplication-host/shApplicationHost.h>
#include <string.h>
#include <stdio.h>

Functions

uint64_t shApplicationRun (void *p_engine, ShApplicationFunc *p_func)
 Runs a shared application.
 
uint8_t shGetSharedApplication (const char *shared_name, const char *s_start, const char *s_update, const char *s_main_cmd_buffer, const char *s_main_renderpass, const char *s_frame_resize, const char *s_close, ShApplicationHost *p_application)
 Retrieves the shared application information.
 

Function Documentation

◆ shApplicationRun()

uint64_t shApplicationRun ( void *  p_engine,
ShApplicationFunc p_func 
)

Runs a shared application.

This function runs the shared application by executing the provided application function.

Parameters
p_engineA pointer to the engine data.
p_funcThe application function to run.
Returns
A 64-bit unsigned integer representing the success or failure of the application.

◆ shGetSharedApplication()

uint8_t shGetSharedApplication ( const char *  shared_name,
const char *  s_start,
const char *  s_update,
const char *  s_main_cmd_buffer,
const char *  s_main_renderpass,
const char *  s_frame_resize,
const char *  s_close,
ShApplicationHost p_application 
)

Retrieves the shared application information.

This function retrieves information about the shared application from the shared library.

Parameters
shared_nameThe name of the shared library.
s_startThe symbol name for the start function.
s_updateThe symbol name for the update function.
s_main_cmd_bufferThe symbol name for the main command buffer function.
s_main_renderpassThe symbol name for the main render pass function.
s_frame_resizeThe symbol name for the frame resize function.
s_closeThe symbol name for the close function.
p_applicationA pointer to the application host structure to fill.
Returns
An 8-bit unsigned integer representing the success or failure of retrieving the shared application.