Last change
on this file since 1343 was 1343, checked in by johnmcp, 24 years ago |
Added the YAZ toolkit source to the packages directory (for z39.50 stuff)
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
885 bytes
|
Line | |
---|
1 | #ifndef YAZ_ZCLIENT_H
|
---|
2 | #define YAZ_ZCLIENT_H
|
---|
3 | /*#include "../include/yaz/z-core.h"*/
|
---|
4 |
|
---|
5 | extern void z_initialize(void);
|
---|
6 |
|
---|
7 | /* creates a connection, given a host and port, and database name */
|
---|
8 | extern int z_cmd_open(char *host_and_port, char *base);
|
---|
9 |
|
---|
10 | /* returns number of records found */
|
---|
11 | extern int z_cmd_dosearch(char *search);
|
---|
12 |
|
---|
13 | /* returns an array of strings containing record titles. The first element
|
---|
14 | is an int, saying how many titles follow (can be zero). NULL on error. */
|
---|
15 | extern char **z_getrecordTitles(int start,int count);
|
---|
16 |
|
---|
17 | /* returns a string containing the whole marc record */
|
---|
18 | extern char *z_getfullRecord(int record);
|
---|
19 |
|
---|
20 | /* close the connection */
|
---|
21 | extern int z_cmd_close(char *arg);
|
---|
22 |
|
---|
23 | /* returns a string containing name, ID, etc, or NULL if not connected */
|
---|
24 | extern char *z_get_initResponse();
|
---|
25 |
|
---|
26 | /* gets a generic response from the server */
|
---|
27 | extern int z_getnextAPDU ();
|
---|
28 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.