提交 39943e35 编写于 作者: X xionglei6

fix: ondemand replace dynamic

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 262f673f
......@@ -584,20 +584,6 @@ static int ParseServiceFile(const cJSON *curArrItem, Service *curServ)
return ret;
}
static bool IsServiceInMainStrap(Service *curServ)
{
char *mainServiceList[] = {
"appspawn", "udevd", "samgr", "multimodalinput", "weston", "installs",
"hiview", "hilogd", "hdf_devmgr", "distributedsche", "softbus_server", "foundation"
};
unsigned int length = ARRAY_LENGTH(mainServiceList);
for (unsigned int i = 0; i < length; ++i) {
INIT_INFO_CHECK(strncmp(curServ->name, mainServiceList[i], strlen(mainServiceList[i])) != 0, return true,
"%s must be main service", curServ->name);
}
return false;
}
static int GetServiceOnDemand(const cJSON *curArrItem, Service *curServ)
{
cJSON *item = cJSON_GetObjectItem(curArrItem, "ondemand");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册