*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
- * Private declarations of the SMS library.
- *
- * $Log$
- * Revision 1.2 1987-05-31 22:07:06 wesommer
- * Private data to the sms server and library.
- *
- * Revision 1.1 87/05/20 03:12:00 wesommer
- * Initial revision
- *
+ * Private declarations of the Moira library.
*/
-#include <stdio.h>
-#include <gdb.h>
-#include <sms.h>
-
-typedef struct sms_params {
- int sms_size;
- int sms_version_no;
- union {
- int procno; /* for call */
- int status; /* for reply */
- } u;
-#define sms_procno u.procno
-#define sms_status u.status
- int sms_argc;
- char **sms_argv;
- int *sms_argl;
- char *sms_flattened;
- int sms_state;
-} sms_params;
-
-extern CONNECTION _sms_conn;
-
-extern OPERATION _sms_send_op, _sms_recv_op;
-extern int sms_start_recv(), sms_start_send();
-extern int sms_inited;
-
-#define SMS_GDB_SERV "sms:#8973"
+#include "mr_proto.h"
+
+extern CONNECTION _mr_conn;
+extern OPERATION _mr_send_op, _mr_recv_op;
+
+extern int mr_inited;
+extern int sending_version_no;
/*
* You are in a maze of twisty little FSM's, all different.
#define EVER (;;)
+#define CHECK_CONNECTED {if (!_mr_conn) return MR_NOT_CONNECTED;}
+
+/*
+ * There should be an include file for these..
+ */
+
+extern char *malloc();
+#ifndef htonl
+extern u_long htonl(), ntohl();
+extern u_short htons(), ntohs();
+#endif /* htonl */
+
+
+