First version of gip interface (gateway IPc).
[egate.git] / include / gip.h
diff --git a/include/gip.h b/include/gip.h
new file mode 100644 (file)
index 0000000..45b4003
--- /dev/null
@@ -0,0 +1,36 @@
+/* Gateway kernel
+ * Europagate, 1995
+ *
+ * $Log: gip.h,v $
+ * Revision 1.1  1995/03/27 08:23:17  adam
+ * First version of gip interface (gateway IPc).
+ * First version of gw-db: gateway hash db.
+ *
+ */
+
+typedef struct GIP_info {
+    int rfd;
+    int wfd;
+    char *name;
+    int ret;
+    int errno;
+} *GIP;
+
+GIP gip_initialize (const char *name);
+int gip_destroy (GIP gip);
+int gip_infileno (GIP gip);
+int gip_errno (GIP gip);
+int gip_read (GIP gip, char *buf, size_t count);
+int gip_write (GIP gip, const char *buf, size_t count);
+int gip_wline (GIP gip, const char *buf);
+
+GIP gipc_initialize (const char *name);
+int gipc_destroy (GIP gip);
+int gipc_open (GIP gip, const char *server, int sync);
+int gipc_close (GIP gip);
+
+GIP gips_initialize (const char *name);
+int gips_destroy (GIP gip);
+int gips_open (GIP gip, const char *client);
+int gips_close (GIP gip);
+