*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
- * Private declarations of the SMS library.
- *
- * $Log$
- * Revision 1.1 1987-05-20 03:12:00 wesommer
- * Initial revision
- *
+ * Private declarations of the Moira library.
+ */
+
+#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.
*/
-#include <gdb.h>
-#include <sms.h>
+#define S_RECV_START 1
+#define S_RECV_DATA 2
+#define S_DECODE_DATA 3
+
+#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 */
+
+