diff options
author | Simo Sorce <idra@samba.org> | 2008-10-15 14:03:20 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-16 13:42:22 -0400 |
commit | 8b0afbc4aa94628290d74165cab6bec97c7e532b (patch) | |
tree | 11d9529563f88a929de1ff44364be0d5864031bd /ldb/include | |
parent | f11b502bf535ff5e09e595dbb95d9bdd5e2e7857 (diff) | |
download | sssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.tar.gz sssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.tar.bz2 sssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.zip |
Transform the sequence_number operation into a normal extended operation as it should always have been. Make it also async so that it is not a special case.
(Sync from upstream)
Diffstat (limited to 'ldb/include')
-rw-r--r-- | ldb/include/ldb.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/ldb/include/ldb.h b/ldb/include/ldb.h index 671a34c7..7208dd5d 100644 --- a/ldb/include/ldb.h +++ b/ldb/include/ldb.h @@ -655,7 +655,6 @@ enum ldb_request_type { LDB_DELETE, LDB_RENAME, LDB_EXTENDED, - LDB_SEQUENCE_NUMBER, LDB_REQ_REGISTER_CONTROL, LDB_REQ_REGISTER_PARTITION }; @@ -682,21 +681,38 @@ struct ldb_extended { void *data; /* NULL or a valid talloc pointer! talloc_get_type() will be used on it */ }; +#define LDB_EXTENDED_SEQUENCE_NUMBER "1.3.6.1.4.1.7165.4.4.3" + +enum ldb_sequence_type { + LDB_SEQ_HIGHEST_SEQ, + LDB_SEQ_HIGHEST_TIMESTAMP, + LDB_SEQ_NEXT +}; + +struct ldb_seqnum_request { + enum ldb_sequence_type type; +}; + +struct ldb_seqnum_result { + uint64_t seq_num; + uint32_t flags; +}; + struct ldb_result { unsigned int count; struct ldb_message **msgs; - char **refs; struct ldb_extended *extended; struct ldb_control **controls; + char **refs; }; struct ldb_reply { + int error; enum ldb_reply_type type; struct ldb_message *message; struct ldb_extended *response; - char *referral; struct ldb_control **controls; - int error; + char *referral; }; struct ldb_request; @@ -735,18 +751,6 @@ struct ldb_register_partition { struct ldb_dn *dn; }; -enum ldb_sequence_type { - LDB_SEQ_HIGHEST_SEQ, - LDB_SEQ_HIGHEST_TIMESTAMP, - LDB_SEQ_NEXT -}; - -struct ldb_sequence_number { - enum ldb_sequence_type type; - uint64_t seq_num; - uint32_t flags; -}; - typedef int (*ldb_request_callback_t)(struct ldb_request *, struct ldb_reply *); struct ldb_request { @@ -760,7 +764,6 @@ struct ldb_request { struct ldb_delete del; struct ldb_rename rename; struct ldb_extended extended; - struct ldb_sequence_number seq_num; struct ldb_register_control reg_control; struct ldb_register_partition reg_partition; } op; |