Defining a directory callback

A directory callback is defined as follows:

CS_RETCODE CS_PUBLIC 
 directory_cb (connection, reqid, status,
              numentries, ds_object, userdata)

CS_CONNECTION   *connection;
 CS_INT                     reqid;
 CS_RETCODE          status;
 CS_INT                     numentries;
 CS_DS_OBJECT     *ds_object;
 CS_VOID                  *userdata;

where: