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

Last change on this file since 24411 was 15492, checked in by mdewsnip, 16 years ago

New directory to contain all the Z39.50 code (currently incomplete).

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.