diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-07-08 12:01:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-07-09 09:27:11 +0200 |
commit | 65ca5a3542cb1ccb07da0831c61c043f4632ffa8 (patch) | |
tree | 6a4490591d29090db944c09b3296135576a23e69 /source4/dsdb/samdb/ldb_modules | |
parent | 1d6f321a918699906cabbe3ee2970bd0a635180b (diff) | |
download | samba-65ca5a3542cb1ccb07da0831c61c043f4632ffa8.tar.gz samba-65ca5a3542cb1ccb07da0831c61c043f4632ffa8.tar.bz2 samba-65ca5a3542cb1ccb07da0831c61c043f4632ffa8.zip |
s4:dsdb: add dsdb_msg_constrainted_update_uint32/64() wrapper functions
metze
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index fe7f46cb8b..1d583f9cb4 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -995,6 +995,17 @@ int dsdb_msg_constrainted_update_int32(struct ldb_module *module, return LDB_SUCCESS; } +int dsdb_msg_constrainted_update_uint32(struct ldb_module *module, + struct ldb_message *msg, + const char *attr, + const uint32_t *old_val, + const uint32_t *new_val) +{ + return dsdb_msg_constrainted_update_int32(module, msg, attr, + (const int32_t *)old_val, + (const int32_t *)new_val); +} + int dsdb_msg_constrainted_update_int64(struct ldb_module *module, struct ldb_message *msg, const char *attr, @@ -1043,6 +1054,17 @@ int dsdb_msg_constrainted_update_int64(struct ldb_module *module, return LDB_SUCCESS; } +int dsdb_msg_constrainted_update_uint64(struct ldb_module *module, + struct ldb_message *msg, + const char *attr, + const uint64_t *old_val, + const uint64_t *new_val) +{ + return dsdb_msg_constrainted_update_int64(module, msg, attr, + (const int64_t *)old_val, + (const int64_t *)new_val); +} + /* update an int32 attribute safely via a constrained delete/add */ |