fix ipc problem

Signed-off-by: shilei <shilei91@huawei.com>
Change-Id: I9da7aae99efdb0f384fb0455cbf6522334f2bcc7
This commit is contained in:
shilei
2022-07-21 22:18:08 +08:00
parent 134a173526
commit 60bbaf3129
8 changed files with 18 additions and 3 deletions
@@ -19,6 +19,7 @@
#include "utils.h"
#ifndef __LITEOS_M__
#ifdef OHOS_APPEXECFWK_BMS_BUNDLEMANAGER
namespace {
constexpr int VALUE_NULL = 0;
@@ -28,6 +29,7 @@ namespace {
constexpr int MAX_DEVICE_ID = 1024;
}
#endif
#endif
void ClearElement(ElementName *element)
{
@@ -73,6 +75,7 @@ bool SetElementAbilityName(ElementName *element, const char *abilityName)
return element->abilityName != nullptr;
}
#ifndef __LITEOS_M__
#ifdef OHOS_APPEXECFWK_BMS_BUNDLEMANAGER
bool SerializeElement(IpcIo *io, const ElementName *element)
{
@@ -133,4 +136,5 @@ bool DeserializeElement(ElementName *element, IpcIo *io)
}
return true;
}
#endif
#endif