|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Modules | |
| Handling Directory Operation Results | |
| DS_Status | DS_ReadAsync (DS_Session *session, const DS_DN *dn, const char *attr_selection[], DS_CommonArgs *common_args, int *ret_op_id) |
| Invoke an asynchronous directory read entry operation. | |
| DS_Status | DS_Poll (DS_Session *session, int op_id, DS_Indication **indication_p) |
| Poll for an asynchronous operation indication. | |
| DS_Status | DS_Cancel (DS_Session *session, int op_id) |
| Cancel a previously issued asynchronous operation. | |
The basic sequence of operation for asynchronous directory operations is as follows:
| DS_Status DS_ReadAsync | ( | DS_Session * | session, | |
| const DS_DN * | dn, | |||
| const char * | attr_selection[], | |||
| DS_CommonArgs * | common_args, | |||
| int * | ret_op_id | |||
| ) |
Invoke an asynchronous directory read entry operation.
The caller should subsequently poll for the result using DS_Poll() with the operation ID returned in ret_op_id.
| session | [in] Pointer to an open directory session | |
| dn | [in] DN of entry to read | |
| attr_selection | [in] NULL terminated array of names of attributes to read | |
| common_args | [in] Common arguments to directory operations | |
| ret_op_id | [out] Returned operation ID (on success) |
| DS_E_BADDN | The dn was not valid | |
| DS_E_BADPARAM | The attr_selection was invalid | |
| DS_E_DSOPFAILED | The operation was not sent to the directory | |
| DS_E_NOERROR | The operation was sent successfully |
It is not permitted to request all user attributes and all operational attributes and a list of specific attributes.
| DS_Status DS_Poll | ( | DS_Session * | session, | |
| int | op_id, | |||
| DS_Indication ** | indication_p | |||
| ) |
Poll for an asynchronous operation indication.
If the operation (identified by argument op_id) has completed an indication is passed back to the caller in return pointer indication_p. If no result available the return pointer is set to NULL.
| session | [in] Pointer to an open directory session. | |
| op_id | [in] Read operation ID. | |
| indication_p | [out] Return result/error. |
| DS_E_BADPARAM | Either session or indication_p was NULL | |
| DS_E_NOTFOUND | The op_id was not found | |
| DS_E_NOERROR | An indication was returned |
| DS_Status DS_Cancel | ( | DS_Session * | session, | |
| int | op_id | |||
| ) |
Cancel a previously issued asynchronous operation.
If the application is no longer interested in getting the result of an earlier asynchronous operation, it may choose to cancel it.
| session | [in] Poiner to an open directory session. | |
| op_id | [in] The operation ID being cancelled. |
| DS_E_BADPARAM | session was NULL | |
| DS_E_DSOPFAILED | The operation was not sent to the directory | |
| DS_E_NOERROR | The operation was cancelled |