Add finalize function as exported function to external renderer and use it in the main app after rendering

This commit is contained in:
2019-11-16 22:44:41 +01:00
parent c7ceef7d66
commit cf2947d2d5
5 changed files with 36 additions and 2 deletions

View File

@@ -32,6 +32,15 @@
*/
#define EXTERNAL_LIBRARY_INIT_FUNCTION exported_init
/**
* @brief Function name expected to be found in external library for finalizing.
*
* @code
* int EXTERNAL_LIBRARY_FINALIZE_FUNCTION(void);
* @endcode
*/
#define EXTERNAL_LIBRARY_FINALIZE_FUNCTION exported_finalize
/**
* @brief Global integer specified by an external renderer to signal, that the init and render functions shall be executed in a subprocess
*