diff gsm-fw/gpf/osx/osx.c @ 493:4775ba17ba05

osx.c: int_osx_send_sig() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 06:51:22 +0000
parents 517cde3e238e
children a8799459110c
line wrap: on
line diff
--- a/gsm-fw/gpf/osx/osx.c	Mon Jun 30 19:31:52 2014 +0000
+++ b/gsm-fw/gpf/osx/osx.c	Tue Jul 01 06:51:22 2014 +0000
@@ -14,3 +14,19 @@
 int osx_config = 2;
 int _caller;
 T_OSX_REGISTER _osx_registry[7];
+
+void
+int_osx_send_sig(int caller, unsigned long opc, void *signal_ptr,
+		 int queue_handle)
+{
+	T_QMSG Message;
+	int status;
+
+	TRACE_ASSERT(queue_handle != 0);
+	Message.MsgType = MSG_SIGNAL;
+	Message.Msg.Signal.SigOPC = opc;
+	Message.Msg.Signal.SigBuffer = signal_ptr;
+	Message.Msg.Signal.SigLen = sizeof(xSignalHeaderRec);
+	status = vsi_c_send(caller, queue_handle, &Message FILE_LINE_MACRO);
+	TRACE_ASSERT(status == VSI_OK);
+}