summaryrefslogtreecommitdiff
path: root/server/zserver.h
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1987-03-19 09:10:10 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1987-03-19 09:10:10 +0000
commit88a0ebf03b79fd12ad81a2ff54d2ed348ab8a83f (patch)
tree0cbeb08383c93592261dffb130a78a64d90ee7bc /server/zserver.h
parentb0bd364c739e3d8f1f81cb9266cfd6d5e27d7f4e (diff)
move structure definitions to server include file for use in cross-
subsystem use
Diffstat (limited to 'server/zserver.h')
-rw-r--r--server/zserver.h44
1 files changed, 38 insertions, 6 deletions
diff --git a/server/zserver.h b/server/zserver.h
index d8ad9e9..7b0b361 100644
--- a/server/zserver.h
+++ b/server/zserver.h
@@ -1,24 +1,56 @@
-/* Coypright 1987, Massachusetts Institute of Technology */
-/*
+/* This file is part of the Project Athena Zephyr Notification System.
+ * It contains declarations for use in the server.
+ *
+ * Created by: John T. Kohl
+ *
* $Source$
- * $Header$
+ * $Author$
+ *
+ * Copyright (c) 1987 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, see the file
+ * "mit-copyright.h".
*/
/* definitions for the Zephyr server */
+/* structures */
typedef struct _ZClientDesc_t {
- struct _ZClientDesc_t *q_forw;
- struct _ZClientDesc_t *q_back;
+/* struct _ZClientDesc_t *q_forw;
+ struct _ZClientDesc_t *q_back;*/
+ char *dummy;
} ZClientDesc_t;
typedef struct _ZEntity_t {
char *filler; /* fill this in later */
} ZEntity_t;
+typedef struct _ZClientList_t {
+ struct _ZClientList_t *q_forw;
+ struct _ZClientList_t *q_back;
+ ZClientDesc_t *client;
+} ZClientList_t;
+
+typedef struct _ZClass_t {
+ struct _ZClass_t *q_forw;
+ struct _ZClass_t *q_back;
+ char *classname;
+ ZClientList_t *clientlist;
+} ZClass_t;
+
+
+#define NULLZCT ((ZClass_t *) 0)
+#define NULLZCDT ((ZClientDesc_t *) 0)
+#define NULLZCLT ((ZClientList_t *) 0)
+
/* Function declarations */
+/* found in common.c */
extern char *strsave();
+/* found in cm.c */
+extern Code_t cm_register();
+extern Code_t cm_deregister();
+extern ZClientList_t *cm_lookup();
+
/* server internal error codes */
-#define ZERR_S_FIRST 2000
#define ZERR_S_BADASSOC 2000 /* client not associated with class */