comparison gsm-fw/gpf/osx/osx.c @ 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
comparison
equal deleted inserted replaced
495:34303faf4620 496:2c16b554d142
45 void 45 void
46 int_osx_free_prim(int caller, xSignalHeaderRec *prim_ptr) 46 int_osx_free_prim(int caller, xSignalHeaderRec *prim_ptr)
47 { 47 {
48 vsi_c_free(caller, (T_VOID_STRUCT **) &prim_ptr FILE_LINE_MACRO); 48 vsi_c_free(caller, (T_VOID_STRUCT **) &prim_ptr FILE_LINE_MACRO);
49 } 49 }
50
51 void
52 int_osx_send_prim(int caller, xSignalHeaderRec *prim_ptr, int queue_handle)
53 {
54 T_QMSG Message;
55 int status;
56
57 if (osx_config & 1 && prim_ptr->SignalCode == 0x7D) {
58 vsi_c_free(caller, (T_VOID_STRUCT **) &prim_ptr
59 FILE_LINE_MACRO);
60 return;
61 }
62 TRACE_ASSERT(queue_handle != 0);
63 Message.MsgType = MSG_PRIMITIVE;
64 Message.Msg.Primitive.Prim = (T_VOID_STRUCT *) prim_ptr;
65 Message.Msg.Primitive.PrimLen = sizeof(xSignalHeaderRec);
66 status = vsi_c_send(caller, queue_handle, &Message FILE_LINE_MACRO);
67 TRACE_ASSERT(status == VSI_OK);
68 }