[message_port] Fix tutorial.
authorhyunho kang <hhstark.kang@samsung.com>
Fri, 10 Jul 2015 00:24:13 +0000 (09:24 +0900)
committerhyunho kang <hhstark.kang@samsung.com>
Fri, 10 Jul 2015 00:46:12 +0000 (09:46 +0900)
Change-Id: Iac3f6cd23e0da480a6bc935b1cccddbfe431922d
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm

index 8ae56a4..d0e7682 100644 (file)
@@ -105,7 +105,7 @@ int message_port_register_local_port(const char* local_port, message_port_messag
 <p>Implement the following codes in Application 2. Implement the <span style="font-family: Courier New,Courier,monospace">message_port_cb()</span> callback function for the <span style="font-family: Courier New,Courier,monospace">message_port_register_local_port()</span> function.</p>
 
 <pre class="prettyprint">
-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)
 {
 &nbsp;&nbsp;&nbsp;char *command = NULL;
 &nbsp;&nbsp;&nbsp;char *data = NULL;
@@ -215,7 +215,7 @@ void send_message(void)
   
   
 <pre class="prettyprint">
-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)
 {
 
 &nbsp;&nbsp;&nbsp;int ret;
@@ -244,7 +244,7 @@ void message_port_cb(int local_port_id, const char *remote_app_id, const char *r
        <p>Register the local port in Application 1.</p>
        
 <pre class="prettyprint">
-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)
 {
 &nbsp;&nbsp;&nbsp;char *result = NULL;
 &nbsp;&nbsp;&nbsp;bundle_get_str(message, &quot;result&quot;, &amp;result);