From 3339e4d438edd41772ccb8339783df04061e7cc6 Mon Sep 17 00:00:00 2001 From: hyunho kang Date: Fri, 10 Jul 2015 09:24:13 +0900 Subject: [PATCH] [message_port] Fix tutorial. Change-Id: Iac3f6cd23e0da480a6bc935b1cccddbfe431922d Signed-off-by: hyunho kang --- .../html/native/app_framework/message_port_tutorial_n.htm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm b/org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm index 8ae56a4..d0e7682 100644 --- a/org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm @@ -105,7 +105,7 @@ int message_port_register_local_port(const char* local_port, message_port_messag

Implement the following codes in Application 2. Implement the message_port_cb() callback function for the message_port_register_local_port() function.

-void message_port_cb(int local_port_id, const char *remote_app_id, bundle *message)
+void message_port_cb(int local_port_id, const char *remote_app_id, const char *remote_port, bool trusted_remote_port, bundle *message, void *user_data)
 {
    char *command = NULL;
    char *data = NULL;
@@ -215,7 +215,7 @@ void send_message(void)
   
   
 
-void message_port_cb(int local_port_id, const char *remote_app_id, const char *remote_port, bool trusted_remote_port, bundle *message)
+void message_port_cb(int local_port_id, const char *remote_app_id, const char *remote_port, bool trusted_remote_port, bundle *message, void *user_data)
 {
 
    int ret;
@@ -244,7 +244,7 @@ void message_port_cb(int local_port_id, const char *remote_app_id, const char *r
 	

Register the local port in Application 1.

-void message_port_cb(int local_port_id, const char *remote_app_id, const char *remote_port, bool trusted_remote_port, bundle *message) 
+void message_port_cb(int local_port_id, const char *remote_app_id, const char *remote_port, bool trusted_remote_port, bundle *message, void *user_data)
 {
    char *result = NULL;
    bundle_get_str(message, "result", &result);
-- 
2.7.4