X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst4.c;fp=zoom%2Fzoomtst4.c;h=7ed678f600b45f30e87224258d3fefdb5b9af2b3;hp=187b0475af68eff30404b54959ee9afca352cdbf;hb=13671e7cc0f3dd4e4b02f94d64a50778c5696ba6;hpb=b340923765c14d2ba050a171bb557474044d7e6a diff --git a/zoom/zoomtst4.c b/zoom/zoomtst4.c index 187b047..7ed678f 100644 --- a/zoom/zoomtst4.c +++ b/zoom/zoomtst4.c @@ -1,5 +1,5 @@ /* - * $Id: zoomtst4.c,v 1.4 2001-11-16 09:52:39 adam Exp $ + * $Id: zoomtst4.c,v 1.5 2001-11-18 21:14:23 adam Exp $ * * Asynchronous multi-target going through proxy doing search and retrieve * using present. @@ -22,10 +22,10 @@ int main(int argc, char **argv) { int i; int no = argc-3; - Z3950_connection z[500]; /* allow at most 500 connections */ - Z3950_resultset r[500]; /* and result sets .. */ - Z3950_query q; - Z3950_options o = Z3950_options_create (); + ZOOM_connection z[500]; /* allow at most 500 connections */ + ZOOM_resultset r[500]; /* and result sets .. */ + ZOOM_query q; + ZOOM_options o = ZOOM_options_create (); if (argc < 4) { @@ -37,18 +37,18 @@ int main(int argc, char **argv) no = 500; /* function my_callback called when reading options .. */ - Z3950_options_set_callback (o, my_callback, 0); + ZOOM_options_set_callback (o, my_callback, 0); /* get 20 (at most) records from offset 5 */ - Z3950_options_set (o, "start", "5"); - Z3950_options_set (o, "count", "20"); + ZOOM_options_set (o, "start", "5"); + ZOOM_options_set (o, "count", "20"); /* set proxy */ - Z3950_options_set (o, "proxy", argv[1]); + ZOOM_options_set (o, "proxy", argv[1]); /* create query */ - q = Z3950_query_create (); - if (Z3950_query_prefix (q, argv[argc-1])) + q = ZOOM_query_create (); + if (ZOOM_query_prefix (q, argv[argc-1])) { printf ("bad PQF: %s\n", argv[argc-1]); exit (1); @@ -56,13 +56,13 @@ int main(int argc, char **argv) /* connect - and search all */ for (i = 0; i