Release 4.1
[unix-history] / usr / src / usr.bin / tn3270 / api / api_exch.h
index 8200b9f..c3d3e40 100644 (file)
@@ -1,8 +1,26 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)api_exch.h  4.1 (Berkeley) %G%
+ */
+
 /*
  * This file describes the structures passed back and forth
  * between the API client and API server on a Unix-based
  * tn3270 implementation.
 /*
  * This file describes the structures passed back and forth
  * between the API client and API server on a Unix-based
  * tn3270 implementation.
- *
  */
 
 /*
  */
 
 /*
@@ -40,8 +58,9 @@
 #define        EXCH_EXCH_TYPE          3       /* The following is a type */
 
 struct exch_exch {
 #define        EXCH_EXCH_TYPE          3       /* The following is a type */
 
 struct exch_exch {
+    char
+       opcode;                 /* COMMAND, TURNAROUND, or TYPE */
     unsigned char
     unsigned char
-       opcode,                 /* COMMAND, TURNAROUND, or TYPE */
        my_sequence,            /* 0-ff, initially zero */
        your_sequence,          /* 0-ff, initially zero */
        command_or_type;        /* Application level command or type */
        my_sequence,            /* 0-ff, initially zero */
        your_sequence,          /* 0-ff, initially zero */
        command_or_type;        /* Application level command or type */
@@ -55,23 +74,27 @@ struct exch_exch {
  */
 
 #define        EXCH_CMD_ASSOCIATE      0       /* Connect [client->server] */
  */
 
 #define        EXCH_CMD_ASSOCIATE      0       /* Connect [client->server] */
+       /*
+        * struct storage_desc
+        * char key[]
+        */
 #define        EXCH_CMD_DISASSOCIATE   1       /* Disconnect [client->server] */
 #define        EXCH_CMD_SEND_AUTH      2       /* Send password [server->client] */
        /*
 #define        EXCH_CMD_DISASSOCIATE   1       /* Disconnect [client->server] */
 #define        EXCH_CMD_SEND_AUTH      2       /* Send password [server->client] */
        /*
-        * struct storeage_desc
+        * struct storage_desc
         * char prompt[]
         * char prompt[]
-        * struct storeage_desc
+        * struct storage_desc
         * char seed[]
         */
 #define        EXCH_CMD_AUTH           3       /* Authorization [client->server] */
        /*
         * char seed[]
         */
 #define        EXCH_CMD_AUTH           3       /* Authorization [client->server] */
        /*
-        * struct storeage_desc
+        * struct storage_desc
         * char authenticator[]
         */
 #define        EXCH_CMD_ASSOCIATED     4       /* Connected [server->client] */
 #define        EXCH_CMD_REJECTED       5       /* Too bad [server->client] */
        /*
         * char authenticator[]
         */
 #define        EXCH_CMD_ASSOCIATED     4       /* Connected [server->client] */
 #define        EXCH_CMD_REJECTED       5       /* Too bad [server->client] */
        /*
-        * struct storeage_desc
+        * struct storage_desc
         * char message[]
         */
 
         * char message[]
         */