summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-20 19:28:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:02:20 -0500
commita9bd40549767c19207f3ec520a3e4346beeabef4 (patch)
tree055d67a79bdd2cb9098284fabdbf8a9cba6e95a9 /source4/lib/ldb/include
parent8d48ca63db0ec8dc47a386bd1fa38be2827755f3 (diff)
downloadsamba-a9bd40549767c19207f3ec520a3e4346beeabef4.tar.gz
samba-a9bd40549767c19207f3ec520a3e4346beeabef4.tar.bz2
samba-a9bd40549767c19207f3ec520a3e4346beeabef4.zip
r3093: - implment ldb_rename() and ldbrename
- add tests for ldbrename - disable all tests which regenerate the index (this is broken for me...the process hangs, tridge we need to discuss that) - link only the needed stuff to the ldb tools - build ldbtest inside samba metze (This used to be commit 18552f4786c24e0019cc87726ef4c05365fe586e)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 4b1401f673..3c78f12fb5 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -2,6 +2,7 @@
ldb database library
Copyright (C) Andrew Tridgell 2004
+ Copyright (C) Stefan Metzmacher 2004
** NOTE! The following LGPL license applies to the ldb
** library. This does NOT imply that all of Samba is released
@@ -30,6 +31,7 @@
* Description: defines for base ldb API
*
* Author: Andrew Tridgell
+ * Author: Stefan Metzmacher
*/
#ifndef _LDB_H_
@@ -131,6 +133,7 @@ struct ldb_backend_ops {
int (*add_record)(struct ldb_context *, const struct ldb_message *);
int (*modify_record)(struct ldb_context *, const struct ldb_message *);
int (*delete_record)(struct ldb_context *, const char *);
+ int (*rename_record)(struct ldb_context *, const char *olddn, const char *newdn);
const char * (*errstring)(struct ldb_context *);
/* this is called when the alloc ops changes to ensure we
@@ -235,6 +238,11 @@ int ldb_modify(struct ldb_context *ldb,
const struct ldb_message *message);
/*
+ rename a record in the database
+*/
+int ldb_rename(struct ldb_context *ldb, const char *olddn, const char *newdn);
+
+/*
delete a record from the database
*/
int ldb_delete(struct ldb_context *ldb, const char *dn);