* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: zoom.h,v 1.36 2006-06-15 10:34:16 adam Exp $
+ * $Id: zoom.h,v 1.37 2006-10-04 16:24:05 adam Exp $
*/
/**
* \file zoom.h
ZOOM_API(int)
ZOOM_event (int no, ZOOM_connection *cs);
+ZOOM_API(int)
+ZOOM_connection_is_idle(ZOOM_connection cs);
+
ZOOM_END_CDECL
/*
* Local variables:
* 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.91 2006-10-04 16:24:05 adam Exp $
*/
/**
* \file zoom-c.c
return *taskp;
}
+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));
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.91 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
ireq->implementationVersion =