Commit 129bd04f authored by Simon Morlat's avatar Simon Morlat
Browse files

fix extracting of LinphoneContent from SalBody

parent ba53ca3e
......@@ -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;
}
......
......@@ -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);
}
......
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