Defining the directory callback

A directory callback has the following prototype:

 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:

The callback can return CS_CONTINUE or CS_SUCCEED.