Memory dynamically allocated in the Server Lib needs to be released with:
unsigned int ts3server_freeMemory( | pointer) ; |
void* pointer
;
Parameters
pointer
Address of the variable to be released.
Example:
char* version; if(ts3server_getServerLibVersion(&version) == ERROR_ok) { printf("Version: %s\n", version); ts3server_freeMemory(version); }
![]() | Important |
---|---|
Memory must not be released if the function, which dynamically allocated the memory, returned an error. In that case, the result is undefined and not initialized, so freeing the memory might crash the application. |
The severity of log messages that are passed to the callback onUserLoggingMessageEvent
can be configured with:
unsigned int ts3server_setLogVerbosity( | logVerbosity) ; |
enum LogLevel logVerbosity
;
Parameters
logVerbosity
Only messages with a LogLevel equal or higher than logVerbosity
will be sent to the callback.
The default value is LogLevel_DEVEL
.
Returns ERROR_ok
on success, otherwise an error code as defined in public_errors.h
.
For example, after calling
ts3server_setLogVerbosity(LogLevel_ERROR);
only log messages of level LogLevel_ERROR
and LogLevel_CRITICAL
will be passed to onUserLoggingMessageEvent
.