summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-28 12:02:28 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:22 +0200
commit92e6d07ad9743a9e4c10765095b1bdadab2f0541 (patch)
treea11b3e7bf128baccf9c02d603bfb7e52c62b770d /source3
parent16198dc51e8f03d22de73883c0bb6823c464b8c6 (diff)
downloadsamba-92e6d07ad9743a9e4c10765095b1bdadab2f0541.tar.gz
samba-92e6d07ad9743a9e4c10765095b1bdadab2f0541.tar.bz2
samba-92e6d07ad9743a9e4c10765095b1bdadab2f0541.zip
Add dbwrap_trans_*_bystring
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 2cf2684a11027431e6a93992413a5a5a697a4ba0)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap_util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c
index 1005f36b60..cecb8d6dd6 100644
--- a/source3/lib/dbwrap_util.c
+++ b/source3/lib/dbwrap_util.c
@@ -255,3 +255,14 @@ NTSTATUS dbwrap_trans_store_int32(struct db_context *db, const char *keystr,
sizeof(v_store)),
TDB_REPLACE);
}
+
+NTSTATUS dbwrap_trans_store_bystring(struct db_context *db, const char *key,
+ TDB_DATA data, int flags)
+{
+ return dbwrap_trans_store(db, string_term_tdb_data(key), data, flags);
+}
+
+NTSTATUS dbwrap_trans_delete_bystring(struct db_context *db, const char *key)
+{
+ return dbwrap_trans_delete(db, string_term_tdb_data(key));
+}