summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-20 23:20:07 +0000
committerVolker Lendecke <vlendec@samba.org>2006-11-20 23:20:07 +0000
commit31e6c93b32b744d13a9566451e0c85e6340e5a30 (patch)
tree9c76d07a9ecf04dea19b507d198c0b286f88c46d /source/include
parent3e536008590dc1a93fb6fb5a27e2e93147bffc7a (diff)
downloadsamba-31e6c93b32b744d13a9566451e0c85e6340e5a30.tar.gz
samba-31e6c93b32b744d13a9566451e0c85e6340e5a30.tar.xz
samba-31e6c93b32b744d13a9566451e0c85e6340e5a30.zip
r19807: First attempt at wrapping something sane around the registry API. Will be
extended. Volker
Diffstat (limited to 'source/include')
-rw-r--r--source/include/reg_objects.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/include/reg_objects.h b/source/include/reg_objects.h
index 09f124f1c8a..6ddbb89cc75 100644
--- a/source/include/reg_objects.h
+++ b/source/include/reg_objects.h
@@ -32,6 +32,31 @@ typedef struct {
uint8 *data_p;
} REGISTRY_VALUE;
+/*
+ * A registry string is not necessarily NULL terminated. When retrieving it
+ * from the net, we guarantee this however. A server might want to push it
+ * without the terminator though.
+ */
+
+struct registry_string {
+ size_t len;
+ char *str;
+};
+
+struct registry_value {
+ enum winreg_Type type;
+ union {
+ uint32 dword;
+ uint64 qword;
+ struct registry_string sz;
+ struct {
+ uint32 num_strings;
+ struct registry_string *strings;
+ } multi_sz;
+ DATA_BLOB binary;
+ } v;
+};
+
/* container for registry values */
typedef struct {