projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work on event queues. *_option returns new value (not previous).
[yaz-moved-to-github.git]
/
zoom
/
zoomtst7.c
diff --git
a/zoom/zoomtst7.c
b/zoom/zoomtst7.c
index
fd113cf
..
39c4bbb
100644
(file)
--- a/
zoom/zoomtst7.c
+++ b/
zoom/zoomtst7.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoomtst7.c,v 1.3 2001-11-06 17:05:19 adam Exp $
+ * $Id: zoomtst7.c,v 1.5 2001-11-13 22:57:03 adam Exp $
*
* API test..
*/
*
* API test..
*/
@@
-22,6
+22,15
@@
int main(int argc, char **argv)
o = Z3950_options_create ();
o = Z3950_options_create ();
+ z = Z3950_connection_new ("localhost", 9999);
+ if (Z3950_connection_error (z, 0, 0))
+ {
+ printf ("error - couldn't connect?\n");
+ exit (1);
+ }
+
+ Z3950_connection_destroy (z);
+
for (block = 0; block < 3; block++)
{
switch (block)
for (block = 0; block < 3; block++)
{
switch (block)
@@
-66,8
+75,11
@@
int main(int argc, char **argv)
r[j] = Z3950_connection_search (z, s); /* non-piggy */
Z3950_resultset_records (r[j], recs, 0, 2); /* first two */
r[j] = Z3950_connection_search (z, s); /* non-piggy */
Z3950_resultset_records (r[j], recs, 0, 2); /* first two */
+ Z3950_record_destroy (recs[0]);
+ Z3950_record_destroy (recs[1]);
Z3950_resultset_records (r[j], recs, 1, 2); /* third */
Z3950_resultset_records (r[j], recs, 1, 2); /* third */
+
Z3950_resultset_records (r[j], recs, 0, 0); /* ignored */
if (Z3950_resultset_size (r[j]) > 2)
Z3950_resultset_records (r[j], recs, 0, 0); /* ignored */
if (Z3950_resultset_size (r[j]) > 2)
@@
-140,5
+152,3
@@
int main(int argc, char **argv)
exit (0);
}
exit (0);
}
-
-