changeset 504:7b2ceea92a2e

osx.c: osx_alloc_prim() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 19:08:20 +0000
parents 5dac5a17159a
children 19afa1be1d30
files gsm-fw/gpf/osx/osx.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osx/osx.c	Tue Jul 01 19:04:43 2014 +0000
+++ b/gsm-fw/gpf/osx/osx.c	Tue Jul 01 19:08:20 2014 +0000
@@ -150,3 +150,17 @@
 	prim_ptr->SigP = (DummyStruct *)(prim_ptr + 1);
 	return(prim_ptr);
 }
+
+xSignalHeaderRec *
+osx_alloc_prim(unsigned long len)
+{
+	xSignalHeaderRec *prim_ptr;
+
+	prim_ptr = (xSignalHeaderRec *) vsi_c_new(_caller,
+			(len & 0xFFFF) + sizeof(xSignalHeaderRec), 0
+			FILE_LINE_MACRO);
+	/* This check is a FreeCalypso addition */
+	TRACE_ASSERT(prim_ptr != 0);
+	prim_ptr->SigP = (DummyStruct *)(prim_ptr + 1);
+	return(prim_ptr);
+}