From 217177a4df55439cec1d2563ab1af8fbdfe4a991 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Jul 2010 12:02:42 +0200 Subject: s4:dsdb: add dsdb_module_constrainted_update_uint32/64() wrapper functions metze --- source4/dsdb/samdb/ldb_modules/util.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 1d583f9cb4..f7218d4d88 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -1094,6 +1094,17 @@ int dsdb_module_constrainted_update_int32(struct ldb_module *module, return ret; } +int dsdb_module_constrainted_update_uint32(struct ldb_module *module, + struct ldb_dn *dn, + const char *attr, + const uint32_t *old_val, + const uint32_t *new_val) +{ + return dsdb_module_constrainted_update_int32(module, dn, attr, + (const int32_t *)old_val, + (const int32_t *)new_val); +} + /* update an int64 attribute safely via a constrained delete/add */ @@ -1122,3 +1133,14 @@ int dsdb_module_constrainted_update_int64(struct ldb_module *module, talloc_free(msg); return ret; } + +int dsdb_module_constrainted_update_uint64(struct ldb_module *module, + struct ldb_dn *dn, + const char *attr, + const uint64_t *old_val, + const uint64_t *new_val) +{ + return dsdb_module_constrainted_update_int64(module, dn, attr, + (const int64_t *)old_val, + (const int64_t *)new_val); +} -- cgit