--- /dev/null
+#ifndef ZACCESS_H
+#define ZACCESS_H
+
+#define ZASS_DEBUG GW_LOG_DEBUGN(9)
+#define ZASS_TYPE "zass"
+
+#define ZASS_ID "EUROPAGATE/DTB/ID"
+#define ZASS_NAME "EUROPAGATE E-mail/Z39.50 gateway"
+#define ZASS_VERSION "development 0.1"
+
+#define ZASS_MAXRECORDSIZE 10000
+#define ZASS_PREFERREDMESSAGESIZE 10000
+
+typedef struct zass *ZASS;
+
+typedef struct zass_searchent
+{
+ int num; /* # hits */
+ int status; /* status - boolean */
+ int setstatus; /* consult if !status. Value according to Z proto */
+
+ /* These two field provide info from a diagnostic rec returned with
+ response */
+ int errcode; /* bib 1 assumed here. -1 if none provided */
+ char errstring[512]; /* Additional info from diagnostic rec, or "" */
+} zass_searchent;
+
+typedef struct zass_records
+{
+ int which; /* 0 = diagnostic, others according to z3950v3 */
+ char *record; /* marc or other */
+
+ int errcode; /* Only valid if which == 0 */
+ char addinfo[200];
+} zass_records;
+
+typedef struct zass_presentent
+{
+ int num; /* # of recs returned */
+ int nextpos; /* next resultset position. 1==first record */
+ int presentstatus; /* status of set */
+ int num_records;
+ zass_records *records;
+} zass_presentent;
+
+#endif