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
129bd04f
Commit
129bd04f
authored
Jun 18, 2013
by
Simon Morlat
Browse files
fix extracting of LinphoneContent from SalBody
parent
ba53ca3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
coreapi/info.c
View file @
129bd04f
...
...
@@ -85,6 +85,7 @@ const LinphoneContent *linphone_content_from_sal_body(LinphoneContent *obj, cons
obj
->
subtype
=
(
char
*
)
ref
->
subtype
;
obj
->
data
=
(
void
*
)
ref
->
data
;
obj
->
size
=
ref
->
size
;
return
obj
;
}
return
NULL
;
}
...
...
tester/eventapi_tester.c
View file @
129bd04f
...
...
@@ -28,6 +28,8 @@ static const char *subscribe_content="<somexml>blabla</somexml>";
static
const
char
*
notify_content
=
"<somexml2>blabla</somexml2>"
;
void
linphone_notify_received
(
LinphoneCore
*
lc
,
LinphoneEvent
*
lev
,
const
char
*
eventname
,
const
LinphoneContent
*
content
){
CU_ASSERT_PTR_NOT_NULL_FATAL
(
content
);
CU_ASSERT_TRUE
(
strcmp
(
notify_content
,(
const
char
*
)
content
->
data
)
==
0
);
}
void
linphone_subscription_state_change
(
LinphoneCore
*
lc
,
LinphoneEvent
*
lev
,
LinphoneSubscriptionState
state
)
{
...
...
@@ -125,6 +127,7 @@ static void subscribe_test_with_args(bool_t terminated_by_subscriber) {
if
(
terminated_by_subscriber
){
linphone_event_terminate
(
lev
);
}
else
{
CU_ASSERT_PTR_NOT_NULL_FATAL
(
pauline
->
lev
);
linphone_event_terminate
(
pauline
->
lev
);
}
...
...
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