changeset 368:43ca9d5e30cb

os_evt.c: os_EventGroupInformation(): more bogosity
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 29 May 2014 05:26:42 +0000
parents c72feb362ef1
children e2a05eb3129f
files gsm-fw/gpf/osl/os_evt.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_evt.c	Thu May 29 05:12:59 2014 +0000
+++ b/gsm-fw/gpf/osl/os_evt.c	Thu May 29 05:26:42 2014 +0000
@@ -61,3 +61,18 @@
 	*evt_grp_handle = idx;
 	return(OS_OK);
 }
+
+GLOBAL LONG
+os_EventGroupInformation(OS_HANDLE evt_grp_handle, char *Name,
+			 unsigned *mask_evt, unsigned *tasks_waiting,
+			 OS_HANDLE *first_task)
+{
+	if (!EvtGrpTable[evt_grp_handle].Name[0])
+		return(OS_ERROR);
+	if (NU_Event_Group_Information(&EvtGrpTable[evt_grp_handle].EvtGrp,
+					Name, mask_evt, tasks_waiting,
+					first_task) == NU_SUCCESS)
+		return(OS_OK);
+	else
+		return(OS_ERROR);
+}