Logo Search packages:      
Sourcecode: ldb version File versions  Download package

struct ldb_control* ldb_request_get_control ( struct ldb_request *  req,
const char *  oid 
) [read]

check if a control with the specified "oid" exist and return it

req the request struct where to add the control
oid the object identifier of the control as string
the control, NULL if not found

Definition at line 39 of file ldb_controls.c.

      int i;

      /* check if there's a paged request control */
      if (req->controls != NULL) {
            for (i = 0; req->controls[i]; i++) {
                  if (strcmp(oid, req->controls[i]->oid) == 0) {

            return req->controls[i];

      return NULL;

Generated by  Doxygen 1.6.0   Back to index