Commit ccb1828d authored by Ronan's avatar Ronan

feat(c-wrapper): remove CPP_TYPE parameter of L_GET_USER_DATA_FROM_C_OBJECT

parent 1431e151
......@@ -485,7 +485,7 @@ void linphone_call_params_set_no_user_consent (LinphoneCallParams *params, bool_
// =============================================================================
void *linphone_call_params_get_user_data (const LinphoneCallParams *cp) {
return L_GET_USER_DATA_FROM_C_OBJECT(cp, MediaSessionParams);
return L_GET_USER_DATA_FROM_C_OBJECT(cp);
}
void linphone_call_params_set_user_data (LinphoneCallParams *cp, void *ud) {
......
......@@ -1174,7 +1174,7 @@ void linphone_call_unref (LinphoneCall *call) {
}
void *linphone_call_get_user_data (const LinphoneCall *call) {
return L_GET_USER_DATA_FROM_C_OBJECT(call, Call);
return L_GET_USER_DATA_FROM_C_OBJECT(call);
}
void linphone_call_set_user_data (LinphoneCall *call, void *ud) {
......
......@@ -92,7 +92,7 @@ void linphone_chat_message_unref (LinphoneChatMessage *msg) {
}
void * linphone_chat_message_get_user_data (const LinphoneChatMessage *msg) {
return L_GET_USER_DATA_FROM_C_OBJECT(msg, ChatMessage);
return L_GET_USER_DATA_FROM_C_OBJECT(msg);
}
void linphone_chat_message_set_user_data (LinphoneChatMessage *msg, void *ud) {
......
......@@ -258,7 +258,7 @@ void linphone_chat_room_unref (LinphoneChatRoom *cr) {
}
void *linphone_chat_room_get_user_data (const LinphoneChatRoom *cr) {
return L_GET_USER_DATA_FROM_C_OBJECT(cr, ChatRoom);
return L_GET_USER_DATA_FROM_C_OBJECT(cr);
}
void linphone_chat_room_set_user_data (LinphoneChatRoom *cr, void *ud) {
......
......@@ -39,7 +39,7 @@ void linphone_participant_unref (LinphoneParticipant *participant) {
}
void *linphone_participant_get_user_data(const LinphoneParticipant *participant) {
return L_GET_USER_DATA_FROM_C_OBJECT(participant, Participant);
return L_GET_USER_DATA_FROM_C_OBJECT(participant);
}
void linphone_participant_set_user_data(LinphoneParticipant *participant, void *ud) {
......
......@@ -422,7 +422,7 @@ LINPHONE_END_NAMESPACE
)
// Get/set user data on a wrapped C object.
#define L_GET_USER_DATA_FROM_C_OBJECT(OBJECT, CPP_TYPE) \
#define L_GET_USER_DATA_FROM_C_OBJECT(OBJECT) \
LINPHONE_NAMESPACE::Wrapper::getUserData( \
L_GET_CPP_PTR_FROM_C_OBJECT(OBJECT) \
)
......
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