From adb7e7bb3a0a195252a11bfe06219173dc248d73 Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Sat, 11 May 2013 09:45:20 +0900 Subject: [PATCH] Update documents Change-Id: Id9dafeee19c329235518308dc2550d1474563151 Signed-off-by: Sunwook Bae --- include/message-port.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/message-port.h b/include/message-port.h index 6df7a95..677a50b 100755 --- a/include/message-port.h +++ b/include/message-port.h @@ -68,7 +68,8 @@ typedef void (*messageport_message_cb)(int id, const char* remote_app_id, const int messageport_register_local_port(const char* local_port, messageport_message_cb callback); /** - * @brief Registers the trusted local message port. + * @brief Registers the trusted local message port. @n + * This allows communications only if the applications are signed with the same certificate which is uniquely assigned to the developer. * * @param [in] local_port the name of the local message port * @param [in] callback The callback function to be called when a message is received @@ -138,7 +139,8 @@ int messageport_check_trusted_remote_port(const char* remote_app_id, const char int messageport_send_message(const char* remote_app_id, const char* remote_port, bundle* message); /** - * @brief Sends a trusted message to the message port of a remote application. + * @brief Sends a trusted message to the message port of a remote application. @n + * This allows communications only if the applications are signed with the same certificate which is uniquely assigned to the developer. * * @param [in] remote_app_id The ID of the remote application * @param [in] remote_port the name of the remote message port @@ -185,7 +187,7 @@ int messageport_send_trusted_message(const char* remote_app_id, const char* remo * * int id = messageport_register_local_port("HelloPort", OnMessageReceived); * - * int ret = messageport_send_message(id, "0123456789.BasicApp", "BasicAppPort", b); + * int ret = messageport_send_bidirectional_message(id, "0123456789.BasicApp", "BasicAppPort", b); * * bundle_free(b); * } @@ -194,6 +196,7 @@ int messageport_send_bidirectional_message(int id, const char* remote_app_id, co /** * @brief Sends a trusted message to the message port of a remote application. This method is used for the bidirectional communication. + * This allows communications only if the applications are signed with the same certificate which is uniquely assigned to the developer. * * @param [in] id The message port id returned by messageport_register_local_port() or messageport_register_trusted_local_port() * @param [in] remote_app_id The ID of the remote application -- 2.7.4