cscore: Add Shutdown() function

This allows ordered shutdown / destruction of sources and sinks prior to
global singleton destruction.
This commit is contained in:
Peter Johnson
2018-11-07 00:01:27 -08:00
parent 76f5d153fa
commit 193b0a222c
7 changed files with 36 additions and 2 deletions

View File

@@ -440,6 +440,13 @@ void CS_SetLogger(CS_LogFunc func, unsigned int min_level);
void CS_SetDefaultLogger(unsigned int min_level);
/** @} */
/**
* @defgroup cscore_shutdown_cfunc Library Shutdown Function
* @{
*/
void CS_Shutdown(void);
/** @} */
/**
* @defgroup cscore_utility_cfunc Utility Functions
* @{

View File

@@ -377,6 +377,13 @@ void SetLogger(LogFunc func, unsigned int min_level);
void SetDefaultLogger(unsigned int min_level);
/** @} */
/**
* @defgroup cscore_shutdown_func Library Shutdown Function
* @{
*/
void Shutdown();
/** @} */
/**
* @defgroup cscore_utility_func Utility Functions
* @{