X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst2.c;h=bc65f393c7fddab9786aeefcd6243ffc56f91619;hb=3a54a02da2f546427c4e5fe57f952c97f54437ea;hp=f6708022add8fe54b080af140ad0edecd3db598b;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst2.c b/zoom/zoomtst2.c index f670802..bc65f39 100644 --- a/zoom/zoomtst2.c +++ b/zoom/zoomtst2.c @@ -1,7 +1,6 @@ -/* - * $Id: zoomtst2.c,v 1.6 2005-06-25 15:46:08 adam Exp $ - * - * Asynchronous single-target client performing search (no retrieval) +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data + * See the file LICENSE for details. */ #include @@ -27,6 +26,9 @@ int main(int argc, char **argv) /* 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"); @@ -48,7 +50,7 @@ int main(int argc, char **argv) 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);