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 "mr_private.h"
18 int mr_do_call(struct mr_params *params, struct mr_params **reply)
23 _mr_send_op = create_operation();
26 _mr_recv_op = create_operation();
28 initialize_operation(_mr_send_op, mr_start_send, (char *)params, NULL);
29 queue_operation(_mr_conn, CON_OUTPUT, _mr_send_op);
31 initialize_operation(_mr_recv_op, mr_start_recv, (char *)reply, NULL);
32 queue_operation(_mr_conn, CON_INPUT, _mr_recv_op);
34 /* Block until operation done. */
35 mr_complete_operation(_mr_send_op);
36 mr_complete_operation(_mr_recv_op);
38 if ((OP_STATUS(_mr_send_op) != OP_COMPLETE) ||
39 (OP_STATUS(_mr_recv_op) != OP_COMPLETE))