int DOM_SecurePropertyObject::PropertySecurityCheck(OpAtom property_atom, ES_Value* value, DOM_Runtime* origining_runtime, ES_Value* restart_value) { if (value != NULL) { // Perform check only for Get and Put, not HasProperty OpString8 operation_name; CALL_FAILED_IF_ERROR(GetOperationName(DOM_AtomToString(property_atom), &operation_name)); return PropertyAccessSecurityCheck(value, NULL, 0, origining_runtime, restart_value, DOM_Object::ACCESS_TYPE_PROPERTY_ACCESS, operation_name.CStr(), NULL, NULL); } else return ES_VALUE; }
void list_operations( CAMDeviceInfoPtr pDevInfo) { int i; const char* name; printf( "\n Operations %s\n", pDevInfo->Model); printf( " ========== %s\n", underline( pDevInfo->Model)); for (i = 0; i < pDevInfo->cntOperationsSupported; i++) { name = GetOperationName( pDevInfo, pDevInfo->OperationsSupported[i]); printf( " 0x%04X: %s\n", pDevInfo->OperationsSupported[i], (name ? name : "[unknown]")); } }