mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
Fix compilation with tunnel on Android.
This commit is contained in:
parent
c7d6cf0e55
commit
9ef261f66e
1 changed files with 6 additions and 2 deletions
|
|
@ -397,8 +397,12 @@ void TunnelManager::sOnIterate(TunnelManager *zis){
|
|||
}
|
||||
|
||||
#ifdef ANDROID
|
||||
extern void linphone_android_log_handler(int prio, const char *fmt, va_list args);
|
||||
extern void linphone_android_log_handler(int prio, char *str);
|
||||
static void linphone_android_tunnel_log_handler(int lev, const char *fmt, va_list args) {
|
||||
char str[4096];
|
||||
vsnprintf(str, sizeof(str) - 1, fmt, args);
|
||||
str[sizeof(str) - 1] = '\0';
|
||||
|
||||
int prio;
|
||||
switch(lev){
|
||||
case TUNNEL_DEBUG: prio = ANDROID_LOG_DEBUG; break;
|
||||
|
|
@ -408,7 +412,7 @@ static void linphone_android_tunnel_log_handler(int lev, const char *fmt, va_lis
|
|||
case TUNNEL_ERROR: prio = ANDROID_LOG_ERROR; break;
|
||||
default: prio = ANDROID_LOG_DEFAULT; break;
|
||||
}
|
||||
linphone_android_log_handler(prio, fmt, args);
|
||||
linphone_android_log_handler(prio, str);
|
||||
}
|
||||
#endif /*ANDROID*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue