changeset 503:5dac5a17159a

osx.c: int_osx_alloc_prim() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 19:04:43 +0000
parents cff42ff57c60
children 7b2ceea92a2e
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 18:34:53 2014 +0000
+++ b/gsm-fw/gpf/osx/osx.c	Tue Jul 01 19:04:43 2014 +0000
@@ -136,3 +136,17 @@
 {
 	int_osx_free_mem(_caller, mem_ptr);
 }
+
+xSignalHeaderRec *
+int_osx_alloc_prim(int caller, unsigned long len, int pool_group_handle)
+{
+	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);
+}