Home
last modified time | relevance | path

Searched refs:hsps (Results 1 - 3 of 3) sorted by relevance

/base/startup/appspawn/modules/sandbox/
H A Dsandbox_expand.c36 APPSPAWN_STATIC int MountAllHsp(const SandboxContext *context, const cJSON *hsps) in MountAllHsp() argument
38 APPSPAWN_CHECK(context != NULL && hsps != NULL, return -1, "Invalid context or hsps"); in MountAllHsp()
41 cJSON *bundles = cJSON_GetObjectItemCaseSensitive(hsps, "bundles"); in MountAllHsp()
42 cJSON *modules = cJSON_GetObjectItemCaseSensitive(hsps, "modules"); in MountAllHsp()
43 cJSON *versions = cJSON_GetObjectItemCaseSensitive(hsps, "versions"); in MountAllHsp()
H A Dsandbox_utils.cpp1234 nlohmann::json hsps = nlohmann::json::parse(hspListInfo.c_str(), nullptr, false); in MountAllHsp() local
1235 APPSPAWN_CHECK(!hsps.is_discarded() && hsps.contains(g_hspList_key_bundles) && hsps.contains(g_hspList_key_modules) in MountAllHsp()
1236 && hsps.contains(g_hspList_key_versions), return -1, "MountAllHsp: json parse failed"); in MountAllHsp()
1238 nlohmann::json& bundles = hsps[g_hspList_key_bundles]; in MountAllHsp()
1239 nlohmann::json& modules = hsps[g_hspList_key_modules]; in MountAllHsp()
1240 nlohmann::json& versions = hsps[g_hspList_key_versions]; in MountAllHsp()
/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h65 int MountAllHsp(const SandboxContext *context, const cJSON *hsps);

Completed in 5 milliseconds