Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
ccb1828d
Commit
ccb1828d
authored
Sep 22, 2017
by
Ronan
Browse files
feat(c-wrapper): remove CPP_TYPE parameter of L_GET_USER_DATA_FROM_C_OBJECT
parent
1431e151
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/c-wrapper/api/c-call-params.cpp
View file @
ccb1828d
...
...
@@ -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
)
{
...
...
src/c-wrapper/api/c-call.cpp
View file @
ccb1828d
...
...
@@ -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
)
{
...
...
src/c-wrapper/api/c-chat-message.cpp
View file @
ccb1828d
...
...
@@ -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
)
{
...
...
src/c-wrapper/api/c-chat-room.cpp
View file @
ccb1828d
...
...
@@ -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
)
{
...
...
src/c-wrapper/api/c-participant.cpp
View file @
ccb1828d
...
...
@@ -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
)
{
...
...
src/c-wrapper/internal/c-tools.h
View file @
ccb1828d
...
...
@@ -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) \
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment