summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-29 17:04:41 +0200
committerMichael Adam <obnox@samba.org>2008-04-30 12:42:32 +0200
commit5379dda0cd29b6bbb2f385d809299afc1c36aca5 (patch)
tree1874ef0f0ba81f87f0d3c913942083082237df9c /source3
parent411ae73283f2479544fe687d196910e809ad83b0 (diff)
downloadsamba-5379dda0cd29b6bbb2f385d809299afc1c36aca5.tar.gz
samba-5379dda0cd29b6bbb2f385d809299afc1c36aca5.tar.bz2
samba-5379dda0cd29b6bbb2f385d809299afc1c36aca5.zip
registry: add a function for fetching a tdb record for a given keystring
regdb_fetch_key_internal() Michael (This used to be commit 97bed9a23608248f1a590c99fe40564d2fbfa3cc)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 31ada0c85c..93bab672c8 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -713,6 +713,18 @@ fail:
}
+static TDB_DATA regdb_fetch_key_internal(const char *key, TALLOC_CTX *mem_ctx)
+{
+ char *path = NULL;
+
+ path = normalize_reg_path(mem_ctx, key);
+ if (!path) {
+ return make_tdb_data(NULL, 0);
+ }
+
+ return dbwrap_fetch_bystring(regdb, mem_ctx, path);
+}
+
/***********************************************************************
Retrieve an array of strings containing subkeys. Memory should be
released by the caller.