Difference between revisions of "Samba4/LDB/Request"

From SambaWiki
Jump to: navigation, search
(Structures)
(Structures)
Line 1: Line 1:
 
= Structures =
 
= Structures =
 +
 +
== ldb_search ==
 +
 +
<pre>
 +
struct ldb_search {
 +
    struct ldb_dn *base;
 +
    enum ldb_scope scope;
 +
    struct ldb_parse_tree *tree;
 +
    const char * const *attrs;
 +
    struct ldb_result *res;
 +
};
 +
</pre>
  
 
== ldb_request ==
 
== ldb_request ==

Revision as of 20:03, 24 September 2009

Structures

ldb_search

struct ldb_search {
    struct ldb_dn *base;
    enum ldb_scope scope;
    struct ldb_parse_tree *tree;
    const char * const *attrs;
    struct ldb_result *res;
};

ldb_request

struct ldb_request {

    enum ldb_request_type operation;

    union {
        struct ldb_search search;
        struct ldb_add    add;
        struct ldb_modify mod;
        struct ldb_delete del;
        struct ldb_rename rename;
        struct ldb_extended extended;
        struct ldb_register_control reg_control;
        struct ldb_register_partition reg_partition;
    } op;

    struct ldb_control **controls;

    void *context;
    ldb_request_callback_t callback;

    int timeout;
    time_t starttime;
    struct ldb_handle *handle;
};

Operations

ldb_request()

int ldb_request(struct ldb_context *ldb, struct ldb_request *request);

ldb_request_done()

int ldb_request_done(struct ldb_request *req, int status);

ldb_request_is_done()

bool ldb_request_is_done(struct ldb_request *req);