dbsetidle

Description

Call a user-supplied function when DB-Library is finished reading from the server.

Syntax

void dbsetidle(dbproc, idlefunc)
 
DBPROCESS     *dbproc;
void                    (*idlefunc)();

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

idlefunc

The user-supplied function that will be called by DB-Library whenever the server has finished sending data to the host. DB-Library calls idlefunc() with two parameters—the return value from busyfunc() (a pointer to a function that returns an integer) and a pointer to the DBPROCESS from the dbsetidle call.

idlefunc() returns void.

Returns

None.

Usage

See also

dbsetbusy