X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-c.c;h=2cb5bc9eb411fcf6e43f2c722ce93b5e2f29b80b;hb=4d377a28c907f9fee3f576f32d96020fb7a8436c;hp=9918ea052ea8268abfd6765912e23d22b88b97e1;hpb=b64382a1e420049b882b87fb05fe058aa6592d1c;p=yaz-moved-to-github.git diff --git a/src/zoom-c.c b/src/zoom-c.c index 9918ea0..2cb5bc9 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.90 2006-09-27 11:39:02 adam Exp $ + * $Id: zoom-c.c,v 1.92 2006-10-05 14:58:58 adam Exp $ */ /** * \file zoom-c.c @@ -206,6 +206,11 @@ ZOOM_task ZOOM_connection_add_task(ZOOM_connection c, int which) return *taskp; } +ZOOM_API(int) ZOOM_connection_is_idle(ZOOM_connection c) +{ + return c->tasks ? 0 : 1; +} + ZOOM_task ZOOM_connection_insert_task(ZOOM_connection c, int which) { ZOOM_task task = (ZOOM_task) xmalloc(sizeof(*task)); @@ -1216,7 +1221,7 @@ static zoom_ret ZOOM_connection_send_init(ZOOM_connection c) odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.90 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.92 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion =