640 |
char *name; |
char *name; |
641 |
{ |
{ |
642 |
output ("__rig_msgh_encode (__msgh_out, __msgt, __msgh_in->msgh_id + 100);\n"); |
output ("__rig_msgh_encode (__msgh_out, __msgt, __msgh_in->msgh_id + 100);\n"); |
643 |
output ("__msgh_out->msgh_remote_port = __msgh_in->msgh_local_port;\n"); |
output ("__msgh_out->msgh_remote_port = __msgh_in->msgh_remote_port;\n"); |
644 |
output ("__msgh_out->msgh_local_port = 0;\n"); |
/* output ("__msgh_out->msgh_local_port = 0;\n"); */ |
645 |
} |
} |
646 |
|
|
647 |
/* This function generates the the IPC call. The `__rig_rpc' function checks |
/* This function generates the the IPC call. The `__rig_rpc' function checks |
692 |
if (routine_need_reply (rt)) |
if (routine_need_reply (rt)) |
693 |
{ |
{ |
694 |
output ("/* ??? use __rig_reply_port_put (PORT) instead */\n"); |
output ("/* ??? use __rig_reply_port_put (PORT) instead */\n"); |
695 |
output ("__rig_reply_port_put (__msgh_in->msgh_remote_port);\n\n"); |
output ("__rig_reply_port_put (__msgh_in->msgh_local_port);\n\n"); |
696 |
|
|
697 |
output ("__msgt = (struct rtmk_msg_type *) (__msgh_in + 1);\n\n"); |
output ("__msgt = (struct rtmk_msg_type *) (__msgh_in + 1);\n\n"); |
698 |
} |
} |
760 |
"RTMK_MSG_TYPE_MOVE_SEND_ONCE"); |
"RTMK_MSG_TYPE_MOVE_SEND_ONCE"); |
761 |
output (" | RTMK_MSGH_BITS_COMPLEX;\n"); |
output (" | RTMK_MSGH_BITS_COMPLEX;\n"); |
762 |
output ("__msgh_out->msgh_length = (int) ((int) (__msgt) - (int) (__msgh_out));\n"); |
output ("__msgh_out->msgh_length = (int) ((int) (__msgt) - (int) (__msgh_out));\n"); |
763 |
output ("__msgh_out->msgh_remote_port = __msgh_in->msgh_local_port;\n"); |
output ("__msgh_out->msgh_remote_port = __msgh_in->msgh_remote_port;\n"); |
764 |
output ("__msgh_out->msgh_local_port = 0;\n"); |
output ("__msgh_out->msgh_local_port = 0;\n"); |
765 |
output ("return RIG_RESULT_NOTIFY;\n"); |
output ("return RIG_RESULT_NOTIFY;\n"); |
766 |
} |
} |