summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-11-21 15:51:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:02 -0500
commita4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb (patch)
tree734f3b138f68ca776eedd437386ef4e7320a15b8 /source4/lib/ldb/include
parent7e3503e2770a0473cb4f7d8d45b27cbee766d9fa (diff)
downloadsamba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.tar.gz
samba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.tar.bz2
samba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.zip
r3897: add a locking infrastructure
(This used to be commit a99c0adb09e2bc77b876d23cb2d0711ccffd83ca)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h
index dfd388b8c6..720d8928dd 100644
--- a/source4/lib/ldb/include/ldb_private.h
+++ b/source4/lib/ldb/include/ldb_private.h
@@ -63,6 +63,8 @@ struct ldb_module_ops {
int (*modify_record)(struct ldb_module *, const struct ldb_message *);
int (*delete_record)(struct ldb_module *, const char *);
int (*rename_record)(struct ldb_module *, const char *, const char *);
+ int (*named_lock)(struct ldb_module *, const char *);
+ int (*named_unlock)(struct ldb_module *, const char *);
const char * (*errstring)(struct ldb_module *);
/* this is called when the alloc ops changes to ensure we
@@ -101,6 +103,8 @@ int ldb_next_add_record(struct ldb_module *module, const struct ldb_message *mes
int ldb_next_modify_record(struct ldb_module *module, const struct ldb_message *message);
int ldb_next_delete_record(struct ldb_module *module, const char *dn);
int ldb_next_rename_record(struct ldb_module *module, const char *olddn, const char *newdn);
+int ldb_next_named_lock(struct ldb_module *module, const char *lockname);
+int ldb_next_named_unlock(struct ldb_module *module, const char *lockname);
const char *ldb_next_errstring(struct ldb_module *module);
void ldb_next_cache_free(struct ldb_module *module);