X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst3.c;h=7c2f751350969b5ad0e1662a49b36641b7751f23;hb=9c0c683e8e673023dec619948a62513d9a94a179;hp=52ee5a3ad15ec2d229e126f9749dcca871f3afc1;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index 52ee5a3..7c2f751 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ @@ -66,9 +66,11 @@ int main(int argc, char **argv) while ((i = ZOOM_event (no, z))) { int peek = ZOOM_connection_peek_event(z[i-1]); - printf ("no = %d peek = %d event = %d\n", i-1, + int event = ZOOM_connection_last_event(z[i-1]); + printf ("no = %d peek = %d event = %d %s\n", i-1, peek, - ZOOM_connection_last_event(z[i-1])); + event, + ZOOM_get_event_str(event)); } /* no more to be done. Inspect results */