From: Adam Dickmeiss Date: Wed, 5 Jul 1995 10:20:44 +0000 (+0000) Subject: Edited ZDist zlayer to use new API. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=dd45fe202c32408d54cb44ebb9bf1ec965f78cb0;p=egate.git Edited ZDist zlayer to use new API. --- diff --git a/zlayer-zdist/Makefile b/zlayer-zdist/Makefile index ae4b383..c74069a 100644 --- a/zlayer-zdist/Makefile +++ b/zlayer-zdist/Makefile @@ -2,18 +2,18 @@ # Europagate, 1995 # # Makefile for the Zdist interface -# $Id: Makefile,v 1.1 1995/07/03 08:21:42 adam Exp $ +# $Id: Makefile,v 1.2 1995/07/05 10:20:44 adam Exp $ # SHELL=/bin/sh +ZACC=zlayer-zdist +ZINC=-I/home/proj/zdist/zdist102b1-1/libz3950 +ZLIB=/home/proj/zdist/zdist102b1-1/libz3950/libz3950.a ZDEFS=-DLOW_TO_HIGH -Dfar= -ZPRE=/home/proj/zdist/zdist102b1-1/libz3950 -ZINC=-I$(ZPRE) -ZLIB=$(ZPRE)/libz3950.a INCLUDE=-I. -I../include $(ZINC) LIB=../lib/libzass.a -PO=zaccess-yaz.o +PO=zaccess.o CPP=$(CC) -E DEFS=$(INCLUDE) diff --git a/zlayer-zdist/zaccess.c b/zlayer-zdist/zaccess.c index ae181e7..9cafc9c 100644 --- a/zlayer-zdist/zaccess.c +++ b/zlayer-zdist/zaccess.c @@ -47,7 +47,10 @@ * Z39.50 API for the Email gateway * * $Log: zaccess.c,v $ - * Revision 1.1 1995/07/03 08:21:43 adam + * Revision 1.2 1995/07/05 10:20:44 adam + * Edited ZDist zlayer to use new API. + * + * Revision 1.1 1995/07/03 08:21:43 adam * Zdist layer moved to new sub directory. * * Revision 1.17 1995/05/16 09:41:47 adam @@ -215,7 +218,7 @@ int zass_openresult(ZASS p, int *complete) return 0; } -ZASS zass_open(char *host, int port, int *complete) +ZASS zass_open(char *host, int port, int *complete, char *auth) { struct zass *p; PINITREQUEST ireq; @@ -283,7 +286,7 @@ ZASS zass_open(char *host, int port, int *complete) } const struct zass_searchent *zass_search(ZASS a, struct ccl_rpn_node *query, - char *resname, char *databases) + char *resname, char *databases, int *complete) { static struct zass_searchent r; char kwaqs[512], *p; @@ -474,7 +477,7 @@ static void zass_records_free(zass_record *p) * Note that 1== first record. */ const struct zass_presentent *zass_present(ZASS a, char *resname, int start, - int num) + int num, int *complete) { static struct zass_presentent r = {0, 0, 0, 0}; zass_record **rec = &r.records;