source: main/trunk/greenstone2/runtime-src/src/z3950/yaz_zclient.h@ 30954

Last change on this file since 30954 was 30954, checked in by ak19, 8 years ago

New yaz 2.1.56 was needed to get GS2 compiling to work again on Macs after going from producing dynamic linked to statically linked gnome-lib libraries. The new yaz finally compiles (see recent and current commits). Tested z3950server (built by configuring with --enable-z3950) against built yaz-client, and tested GLI's use of yaz-client against Library of Congress' z3950 server. It all works. Need to test Windows next.

File size: 1.0 KB
Line 
1#ifndef YAZ_ZCLIENT_H
2#define YAZ_ZCLIENT_H
3/*#include "../include/yaz/z-core.h"*/
4
5
6/* the new yaz_zclient made for use with Greenstone. Based on client.c
7 * (version 2.1.4) and the old yaz_zclient (version 1.6 for greenstone)
8 * Note: from end Oct 2016, moved to yaz version 2.1.56.
9 */
10void z_initialize(void);
11
12/* creates a connection, given a host and port, and database name */
13int z_cmd_open(char *host_and_port, char *base);
14
15/* returns number of records found */
16int z_cmd_dosearch(char *search);
17
18/* returns an array of strings containing record titles. The first element
19 is an int, saying how many titles follow (can be zero). NULL on error. */
20char **z_getrecordTitles(int start,int count);
21
22/* returns a string containing the whole marc record */
23char *z_getfullRecord(int record);
24
25/* close the connection */
26int z_cmd_close(const char *arg);
27
28/* returns a string containing name, ID, etc, or NULL if not connected */
29char *z_get_initResponse();
30
31/* gets a generic response from the server */
32int z_getnextAPDU ();
33#endif
Note: See TracBrowser for help on using the repository browser.