Commit b3d86801 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

No longer include a userData field in the C clonable structs.

parent 77397eab
......@@ -492,12 +492,12 @@ void linphone_call_params_set_no_user_consent(LinphoneCallParams *params, bool_t
* Reference and user data handling functions *
******************************************************************************/
void *linphone_call_params_get_user_data(const LinphoneCallParams *cp) {
return cp->userData;
void * linphone_call_params_get_user_data(const LinphoneCallParams *cp) {
return L_GET_USER_DATA_FROM_C_STRUCT(cp, MediaSessionParams, CallParams);
}
void linphone_call_params_set_user_data(LinphoneCallParams *cp, void *ud) {
cp->userData = ud;
L_SET_USER_DATA_FROM_C_STRUCT(cp, ud, MediaSessionParams, CallParams);
}
LinphoneCallParams * linphone_call_params_ref(LinphoneCallParams *cp) {
......
......@@ -42,7 +42,6 @@ private:
template<typename T>
struct WrappedClonableObject {
belle_sip_object_t base;
void *userData;
T *cppPtr;
};
......@@ -271,7 +270,6 @@ LINPHONE_END_NAMESPACE
#define L_DECLARE_C_CLONABLE_STRUCT_IMPL(CPP_CLASS, C_STRUCT, C_NAME, ...) \
struct _Linphone ## C_STRUCT { \
belle_sip_object_t base; \
void *userData; \
LINPHONE_NAMESPACE::CPP_CLASS *cppPtr; \
__VA_ARGS__ \
}; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment