Lines Matching defs:property
153 void DeleteAppSpawningCtx(AppSpawningCtx *property);
198 APPSPAWN_INLINE int IsDeveloperModeOn(const AppSpawningCtx *property)
200 return (property != NULL && ((property->client.flags & APP_DEVELOPER_MODE) == APP_DEVELOPER_MODE));
203 APPSPAWN_INLINE int IsJitFortModeOn(const AppSpawningCtx *property)
205 return (property != NULL && ((property->client.flags & APP_JITFORT_MODE) == APP_JITFORT_MODE));
214 APPSPAWN_INLINE const char *GetProcessName(const AppSpawningCtx *property)
216 if (property == NULL || property->message == NULL) {
219 return property->message->msgHeader.processName;
222 APPSPAWN_INLINE const char *GetBundleName(const AppSpawningCtx *property)
224 if (property == NULL || property->message == NULL) {
227 AppSpawnMsgBundleInfo *info = (AppSpawnMsgBundleInfo *)GetAppSpawnMsgInfo(property->message, TLV_BUNDLE_INFO);
234 APPSPAWN_INLINE void *GetAppProperty(const AppSpawningCtx *property, uint32_t type)
236 APPSPAWN_CHECK(property != NULL && property->message != NULL,
237 return NULL, "Invalid property for type %{public}u", type);
238 return GetAppSpawnMsgInfo(property->message, type);
241 APPSPAWN_INLINE void *GetAppPropertyExt(const AppSpawningCtx *property, const char *name, uint32_t *len)
244 APPSPAWN_CHECK(property != NULL && property->message != NULL,
245 return NULL, "Invalid property for name %{public}s", name);
246 return GetAppSpawnMsgExtInfo(property->message, name, len);
249 APPSPAWN_INLINE int CheckAppMsgFlagsSet(const AppSpawningCtx *property, uint32_t index)
251 APPSPAWN_CHECK(property != NULL && property->message != NULL,
252 return 0, "Invalid property for name %{public}u", TLV_MSG_FLAGS);
253 return CheckAppSpawnMsgFlag(property->message, TLV_MSG_FLAGS, index);
256 APPSPAWN_INLINE int CheckAppPermissionFlagSet(const AppSpawningCtx *property, uint32_t index)
258 APPSPAWN_CHECK(property != NULL && property->message != NULL,
259 return 0, "Invalid property for name %{public}u", TLV_PERMISSION);
260 return CheckAppSpawnMsgFlag(property->message, TLV_PERMISSION, index);
263 APPSPAWN_INLINE int SetAppPermissionFlags(const AppSpawningCtx *property, uint32_t index)
265 APPSPAWN_CHECK(property != NULL && property->message != NULL,
266 return -1, "Invalid property for name %{public}u", TLV_PERMISSION);
267 return SetAppSpawnMsgFlag(property->message, TLV_PERMISSION, index);
270 APPSPAWN_INLINE int IsIsolatedNativeSpawnMode(const AppSpawnMgr *content, const AppSpawningCtx *property)
273 CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_SANDBOX_TYPE);