Miscellaneous functions

Memory dynamically allocated in the Server Lib needs to be released with:

unsigned int ts3server_freeMemory(pointer); 
void* pointer;
 

Parameters

Example:

char* version;

if(ts3server_getServerLibVersion(&version) == ERROR_ok) {
    printf("Version: %s\n", version);
    ts3server_freeMemory(version);
}
[Important]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

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.