ZOOM changes.
[yaz-moved-to-github.git] / zoom / zoomtst4.c
index 84fccbb..cdba94c 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * $Id: zoomtst4.c,v 1.2 2001-10-24 21:35:46 adam Exp $
+ * $Id: zoomtst4.c,v 1.3 2001-11-06 17:05:19 adam Exp $
  *
  * Asynchronous multi-target going through proxy doing search and retrieve
  * using present.
  *
  * Asynchronous multi-target going through proxy doing search and retrieve
  * using present.
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
     int no = argc-3;
     Z3950_connection z[500]; /* allow at most 500 connections */
     Z3950_resultset r[500];  /* and result sets .. */
     int no = argc-3;
     Z3950_connection z[500]; /* allow at most 500 connections */
     Z3950_resultset r[500];  /* and result sets .. */
-    Z3950_search s;
+    Z3950_query q;
     Z3950_options o = Z3950_options_create ();
 
     if (argc < 4)
     Z3950_options o = Z3950_options_create ();
 
     if (argc < 4)
@@ -47,8 +47,8 @@ int main(int argc, char **argv)
     Z3950_options_set (o, "proxy", argv[1]);
     
     /* create query */
     Z3950_options_set (o, "proxy", argv[1]);
     
     /* create query */
-    s = Z3950_search_create ();
-    if (Z3950_search_prefix (s, argv[argc-1]))
+    q = Z3950_query_create ();
+    if (Z3950_query_prefix (q, argv[argc-1]))
     {
        printf ("bad PQF: %s\n", argv[argc-1]);
        exit (1);
     {
        printf ("bad PQF: %s\n", argv[argc-1]);
        exit (1);
@@ -58,7 +58,7 @@ int main(int argc, char **argv)
     {
        z[i] = Z3950_connection_create (o);
        Z3950_connection_connect (z[i], argv[i+2], 0);
     {
        z[i] = Z3950_connection_create (o);
        Z3950_connection_connect (z[i], argv[i+2], 0);
-        r[i] = Z3950_connection_search (z[i], s);
+        r[i] = Z3950_connection_search (z[i], q);
     }
 
     /* network I/O */
     }
 
     /* network I/O */
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
     }
 
     /* destroy stuff and exit */
     }
 
     /* destroy stuff and exit */
-    Z3950_search_destroy (s);
+    Z3950_query_destroy (q);
     for (i = 0; i<no; i++)
     {
         Z3950_resultset_destroy (r[i]);
     for (i = 0; i<no; i++)
     {
         Z3950_resultset_destroy (r[i]);