Searched refs:serviceParseCtx (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/base/startup/init/services/modules/selinux/ |
H A D | selinux_static.c | 30 static void ServiceParseSelinuxHook(SERVICE_PARSE_CTX *serviceParseCtx) in ServiceParseSelinuxHook() argument 32 …char *fieldStr = cJSON_GetStringValue(cJSON_GetObjectItem(serviceParseCtx->serviceNode, SECON_STR_… in ServiceParseSelinuxHook() 33 PLUGIN_CHECK(fieldStr != NULL, return, "No secon item in %s", serviceParseCtx->serviceName); in ServiceParseSelinuxHook() 34 PLUGIN_LOGV("Cfg %s for %s", fieldStr, serviceParseCtx->serviceName); in ServiceParseSelinuxHook() 35 DelServiceExtData(serviceParseCtx->serviceName, HOOK_ID_SELINUX); in ServiceParseSelinuxHook() 36 … AddServiceExtData(serviceParseCtx->serviceName, HOOK_ID_SELINUX, fieldStr, strlen(fieldStr) + 1); in ServiceParseSelinuxHook()
|
/ohos5.0/base/startup/init/services/modules/bootevent/ |
H A D | bootevent.c | 364 static void ServiceParseBootEventHook(SERVICE_PARSE_CTX *serviceParseCtx) in ServiceParseBootEventHook() argument 367 cJSON *bootEvents = cJSON_GetObjectItem(serviceParseCtx->serviceNode, BOOT_EVENT_FIELD_NAME); in ServiceParseBootEventHook() 374 ctx.serviceName = serviceParseCtx->serviceName; in ServiceParseBootEventHook() 378 if (AddServiceBootEvent(serviceParseCtx->serviceName, in ServiceParseBootEventHook() 380 INIT_LOGI("Add service bootEvent failed %s", serviceParseCtx->serviceName); in ServiceParseBootEventHook() 390 if (AddServiceBootEvent(serviceParseCtx->serviceName, in ServiceParseBootEventHook() 392 INIT_LOGI("Add service bootEvent failed %s", serviceParseCtx->serviceName); in ServiceParseBootEventHook()
|
/ohos5.0/base/startup/init/interfaces/innerkits/init_module_engine/include/ |
H A D | bootstage.h | 168 typedef void (*ServiceParseHook)(SERVICE_PARSE_CTX *serviceParseCtx);
|