]> andersk Git - moira.git/blobdiff - lib/mr_private.h
Added copyright message; log deadlock errors; use exclusive readlocks
[moira.git] / lib / mr_private.h
index 5f4944d20ec109d2d3a1f73b3718214869056299..7bdf2125723be3c9da5ebe7bd85cebe31a1b52c0 100644 (file)
@@ -8,41 +8,27 @@
  *     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.4  1988-04-19 12:42:49  mar
+ *     declared version number variable
  *
+ * Revision 1.3  87/06/16  17:48:39  wesommer
+ * Clean up memory allocation, indenting.
+ * 
+ * Revision 1.2  87/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
  * 
  */
 
-#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;
+#include "sms_proto.h"
 
 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"
+extern int sms_inited;
+extern int sending_version_no;
 
 /*
  * You are in a maze of twisty little FSM's, all different.
@@ -54,3 +40,17 @@ extern int sms_inited;
 
 #define EVER (;;)
        
+#define CHECK_CONNECTED {if (!_sms_conn) return SMS_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
+
+
+
This page took 0.220664 seconds and 4 git commands to generate.