//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
#include <typeinfo>
#include <unique_ptr.h>
-#include <package_manager.h>
-
#include <message-port.h>
#include <FBaseSysLog.h>
+#include <FBaseByteBuffer.h>
+
#include <FBase_StringConverter.h>
#include <FApp_AppInfo.h>
namespace Tizen { namespace Io
{
-static const int MAX_MESSAGE_SIZE = 16 * 1024;
+//static const int MAX_MESSAGE_SIZE = 16 * 1024;
static void
ConvertBundleToMap(const char *pKey, const int type, const bundle_keyval_t *pVal, void *pData)
ret = messageport_get_local_port_name(id, &pLocalPort);
if (pLocalPort == null)
{
- SysLog(NID_IO, "No local port for id: %d", id);
+ SysSecureLog(NID_IO, "No local port for id: %d", id);
bundle_free(data);
return;
}
else // Bi-directional
{
- SysLog(NID_IO, "Message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
+ SysSecureLog(NID_IO, "Message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
pListener->OnMessageReceivedN(remote_app_id, remote_port, trusted_port, pMap);
}
ret = messageport_get_local_port_name(id, &pLocalPort);
if (pLocalPort == null)
{
- SysLog(NID_IO, "No local port for id: %d", id);
+ SysSecureLog(NID_IO, "No local port for id: %d", id);
bundle_free(data);
return;
}
else // Bi-directional
{
- SysLog(NID_IO, "Trusted message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
+ SysSecureLog(NID_IO, "Trusted message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
pListener->OnMessageReceivedN(remote_app_id, remote_port, trusted_port, pMap);
}
_MessagePortProxy::RegisterMessagePort(const String& localPort, bool isTrusted,
const _IMessagePortListener& listener)
{
- SysLog(NID_IO, "Register a message port : [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer());
+ SysSecureLog(NID_IO, "Register a message port : [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer());
- result r = E_SUCCESS;
int ret = 0;
bool contain = false;
const String& remotePort,
bool isTrusted)
{
- SysLog(NID_IO, "Request a remote message port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
+ SysSecureLog(NID_IO, "Request a remote message port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
result r = E_SUCCESS;
int ret = 0;
result
_MessagePortProxy::SendMessage(const AppId& remoteAppId, const String& remotePort, bool isTrusted, const HashMap* pMap)
{
- SysLog(NID_IO, "Send a unidirectional message to remote port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
+ SysSecureLog(NID_IO, "Send a unidirectional message to remote port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
int ret = 0;
int size = 0;
result
_MessagePortProxy::SendMessage(const String& localPort, bool isTrustedLocal, const AppId& remoteAppId, const String& remotePort, bool isTrustedRemote, const HashMap* pMap)
{
- SysLog(NID_IO, "Send a bidirectional message from [%ls:%ls] to [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer(), remoteAppId.GetPointer(), remotePort.GetPointer());
+ SysSecureLog(NID_IO, "Send a bidirectional message from [%ls:%ls] to [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer(), remoteAppId.GetPointer(), remotePort.GetPointer());
result r = E_SUCCESS;
int id = 0;