1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Add dbwrap_trans_*_bystring

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 2cf2684a11027431e6a93992413a5a5a697a4ba0)
This commit is contained in:
Volker Lendecke 2008-03-28 12:02:28 +01:00 committed by Stefan Metzmacher
parent 16198dc51e
commit 92e6d07ad9

View File

@ -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));
}