From 16c2d33d985b458a9c8943672aa3c283bc05e819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Thu, 12 Jan 2017 18:24:42 +0100 Subject: [PATCH] Define downcast macro for LinphoneAuthInfo --- include/linphone/auth_info.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linphone/auth_info.h b/include/linphone/auth_info.h index b82d747e1..80d600eda 100644 --- a/include/linphone/auth_info.h +++ b/include/linphone/auth_info.h @@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define LINPHONE_AUTH_INFO_H #include + #ifndef LINPHONE_PUBLIC #define LINPHONE_PUBLIC MS2_PUBLIC #endif @@ -55,6 +56,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ typedef struct _LinphoneAuthInfo LinphoneAuthInfo; +/** + * Safely cast a belle_sip_object_t into LinphoneAuthInfo + */ +#define LINPHONE_AUTH_INFO(obj) BELLE_SIP_CAST(obj, LinphoneAuthInfo) #ifdef __cplusplus extern "C" {