From cb9232b3ab413fae7bcc2b94abd70f18ca02b263 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 03 十二月 2024 11:20:32 +0800 Subject: [PATCH] 增加铃声;增加TCP/UDP连接选择 --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/general.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/general.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/general.h old mode 100644 new mode 100755 index e0f4e74..562fc9f --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/general.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/general.h @@ -79,7 +79,7 @@ // Debug. // ----------------------------------------------------------------------------- -void lAssert (const char *condition, const char *file, int line); +LINPHONE_PUBLIC void lAssert (const char *condition, const char *file, int line); #ifdef DEBUG #define L_ASSERT(CONDITION) ((CONDITION) ? static_cast<void>(0) : LinphonePrivate::lAssert(#CONDITION, __FILE__, __LINE__)) @@ -242,6 +242,11 @@ CLASS \ >::type * \ >(getPublic()); +// ----------------------------------------------------------------------------- +// Macro. +// ----------------------------------------------------------------------------- + +#define EPHEMERAL_MESSAGE_TASKS_MAX_NB 10 // ----------------------------------------------------------------------------- // Overload. @@ -286,7 +291,8 @@ // Math. // ----------------------------------------------------------------------------- -// Get the length of one integer. +// Returns the number of digits of the absolute value of the input number +// If the number is negative, add one to the length to account for - sign constexpr int getIntLength (int n) { return n < 0 ? 1 + getIntLength(-n) : (n < 10 ? 1 : 1 + getIntLength(n / 10)); } -- Gitblit v1.8.0