changeset 496:2c16b554d142

osx.c: int_osx_send_prim() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 07:44:05 +0000
parents 34303faf4620
children f11f7cb7c353
files gsm-fw/gpf/osx/osx.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osx/osx.c	Tue Jul 01 07:11:40 2014 +0000
+++ b/gsm-fw/gpf/osx/osx.c	Tue Jul 01 07:44:05 2014 +0000
@@ -47,3 +47,22 @@
 {
 	vsi_c_free(caller, (T_VOID_STRUCT **) &prim_ptr FILE_LINE_MACRO);
 }
+
+void
+int_osx_send_prim(int caller, xSignalHeaderRec *prim_ptr, int queue_handle)
+{
+	T_QMSG Message;
+	int status;
+
+	if (osx_config & 1 && prim_ptr->SignalCode == 0x7D) {
+		vsi_c_free(caller, (T_VOID_STRUCT **) &prim_ptr
+				FILE_LINE_MACRO);
+		return;
+	}
+	TRACE_ASSERT(queue_handle != 0);
+	Message.MsgType = MSG_PRIMITIVE;
+	Message.Msg.Primitive.Prim = (T_VOID_STRUCT *) prim_ptr;
+	Message.Msg.Primitive.PrimLen = sizeof(xSignalHeaderRec);
+	status = vsi_c_send(caller, queue_handle, &Message FILE_LINE_MACRO);
+	TRACE_ASSERT(status == VSI_OK);
+}