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
Documentation updates for new names of dll/so files.
[yaz-moved-to-github.git]
/
zoom
/
zoomtst2.c
diff --git
a/zoom/zoomtst2.c
b/zoom/zoomtst2.c
index
f670802
..
43aeaff
100644
(file)
--- a/
zoom/zoomtst2.c
+++ b/
zoom/zoomtst2.c
@@
-1,8
+1,8
@@
-/*
- * $Id: zoomtst2.c,v 1.6 2005-06-25 15:46:08 adam Exp $
- *
- * Asynchronous single-target client performing search (no retrieval)
- */
+/* $Id: zoomtst2.c,v 1.9 2007-01-03 08:42:17 adam Exp $ */
+
+/** \file zoomtst2.c
+ \brief Asynchronous single-target client performing search (no retrieval)
+*/
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-27,6
+27,9
@@
int main(int argc, char **argv)
/* create connection (don't connect yet) */
z = ZOOM_connection_create(0);
/* create connection (don't connect yet) */
z = ZOOM_connection_create(0);
+ /* option: set sru/get operation (only applicable if http: is used) */
+ ZOOM_connection_option_set (z, "sru", "post");
+
/* option: set async operation */
ZOOM_connection_option_set (z, "async", "1");
/* option: set async operation */
ZOOM_connection_option_set (z, "async", "1");
@@
-48,7
+51,7
@@
int main(int argc, char **argv)
exit (2);
}
else /* OK print hit count */
exit (2);
}
else /* OK print hit count */
- printf ("Result count: %d\n", ZOOM_resultset_size(r));
+ printf ("Result count: %ld\n", (long) ZOOM_resultset_size(r));
ZOOM_resultset_destroy (r);
ZOOM_connection_destroy (z);
exit (0);
ZOOM_resultset_destroy (r);
ZOOM_connection_destroy (z);
exit (0);