From 29d2355ba7ee50a806999711098f348d61172ead Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 18 Dec 2015 17:57:33 +0100 Subject: [PATCH] fix compilation problem --- coreapi/help/notify.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/coreapi/help/notify.c b/coreapi/help/notify.c index bdfae0835..bd96511f6 100644 --- a/coreapi/help/notify.c +++ b/coreapi/help/notify.c @@ -152,12 +152,12 @@ int main(int argc, char *argv[]){ ms_usleep(50000); ++i; if (data->ev && i%100==0){ - LinphoneContentPrivate content; - content.type="application"; - content.subtype="goodxml"; - content.data="really cool"; - content.size=strlen((const char*)content.data); - linphone_event_notify(data->ev,LINPHONE_CONTENT(&content)); + LinphoneContent *content = linphone_core_create_content(lc); + linphone_content_set_type(content, "application"); + linphone_content_set_subtype(content, "goodxml"); + linphone_content_set_string_buffer(content, "really cool"); + linphone_event_notify(data->ev, content); + linphone_content_unref(content); } }