From: Sebastian Hammer Date: Thu, 16 Feb 1995 13:12:38 +0000 (+0000) Subject: First kick. X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=fed910d8353748e97f8417132a3243a291ef3d92;p=egate.git First kick. --- diff --git a/include/zaccess.h b/include/zaccess.h new file mode 100644 index 0000000..128afbd --- /dev/null +++ b/include/zaccess.h @@ -0,0 +1,46 @@ +#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