source: main/tags/2.80/gsdl/src/recpt/yaz_zclient.h@ 24528

Last change on this file since 24528 was 10177, checked in by kjdon, 19 years ago

new version of yaz_zclient for yaz2.1.4 - now lives in colservr. replaces the old 1.6 version that used to live in the yaz directory

  • Property svn:keywords set to Author Date Id Revision
File size: 985 bytes
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 */
9void z_initialize(void);
10
11/* creates a connection, given a host and port, and database name */
12int z_cmd_open(char *host_and_port, char *base);
13
14/* returns number of records found */
15int z_cmd_dosearch(char *search);
16
17/* returns an array of strings containing record titles. The first element
18 is an int, saying how many titles follow (can be zero). NULL on error. */
19char **z_getrecordTitles(int start,int count);
20
21/* returns a string containing the whole marc record */
22char *z_getfullRecord(int record);
23
24/* close the connection */
25int z_cmd_close(const char *arg);
26
27/* returns a string containing name, ID, etc, or NULL if not connected */
28char *z_get_initResponse();
29
30/* gets a generic response from the server */
31int z_getnextAPDU ();
32#endif
Note: See TracBrowser for help on using the repository browser.