3 * Pass an mr_params off to the Moira server and get a reply
5 * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
6 * For copying and distribution information, please see the file
10 #include <mit-copyright.h>
12 #include "mr_private.h"
16 int mr_do_call(struct mr_params *params, struct mr_params **reply)
21 _mr_send_op = create_operation();
24 _mr_recv_op = create_operation();
26 initialize_operation(_mr_send_op, mr_start_send, (char *)params, NULL);
27 queue_operation(_mr_conn, CON_OUTPUT, _mr_send_op);
29 initialize_operation(_mr_recv_op, mr_start_recv, (char *)reply, NULL);
30 queue_operation(_mr_conn, CON_INPUT, _mr_recv_op);
32 /* Block until operation done. */
33 complete_operation(_mr_send_op);
34 complete_operation(_mr_recv_op);
36 if ((OP_STATUS(_mr_send_op) != OP_COMPLETE) ||
37 (OP_STATUS(_mr_recv_op) != OP_COMPLETE))