Event_Priorities in Get_Event_Information is read form associated notification-class object.

This commit is contained in:
k001a
2011-07-13 21:14:52 +00:00
parent 536438d23e
commit 2364561f19
4 changed files with 30 additions and 9 deletions
+22
View File
@@ -684,6 +684,28 @@ bool Notification_Class_Write_Property(
break;
}
return status;
}
void Notification_Class_Get_Priorities(
uint32_t Object_Instance, uint32_t *pPriorityArray)
{
NOTIFICATION_CLASS_INFO *CurrentNotify;
uint32_t object_index;
int i;
object_index = Notification_Class_Instance_To_Index(Object_Instance);
if (object_index < MAX_NOTIFICATION_CLASSES)
CurrentNotify = &NC_Info[object_index];
else {
for(i = 0; i < 3; i++)
pPriorityArray[i] = 255;
return; /* unknown object */
}
for(i = 0; i < 3; i++)
pPriorityArray[i] = CurrentNotify->Priority[i];
}