6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
7 * For copying and distribution information, please see the file
12 static char *rcsid_sms_call_c = "$Header$";
15 #include <mit-copyright.h>
16 #include "sms_private.h"
18 sms_do_call(params, reply)
19 struct sms_params *params;
20 struct sms_params **reply;
25 _sms_send_op = create_operation();
28 _sms_recv_op = create_operation();
30 initialize_operation(_sms_send_op, sms_start_send, (char *)params,
32 queue_operation(_sms_conn, CON_OUTPUT, _sms_send_op);
34 initialize_operation(_sms_recv_op, sms_start_recv, (char *)reply,
36 queue_operation(_sms_conn, CON_INPUT, _sms_recv_op);
38 /* Block until operation done. */
39 complete_operation(_sms_send_op);
40 complete_operation(_sms_recv_op);
42 if ((OP_STATUS(_sms_send_op) != OP_COMPLETE) ||
43 (OP_STATUS(_sms_recv_op) != OP_COMPLETE)) {
53 * c-continued-statement-offset: 4