From 75e691ae6baeac88878e2c8107ceb7e057fd4c5b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 24 May 2010 00:05:26 +0200 Subject: [PATCH] s3:registry: hide definition of regval_ctr and regval_blob in reg_objects.c --- source3/include/reg_objects.h | 14 ++------------ source3/registry/reg_objects.c | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/source3/include/reg_objects.h b/source3/include/reg_objects.h index 282b1a63dd8..a0a830622cc 100644 --- a/source3/include/reg_objects.h +++ b/source3/include/reg_objects.h @@ -23,13 +23,7 @@ /* low level structure to contain registry values */ -struct regval_blob { - fstring valuename; - uint16 type; - /* this should be encapsulated in an RPC_DATA_BLOB */ - uint32 size; /* in bytes */ - uint8 *data_p; -}; +struct regval_blob; /* * A REG_SZ string is not necessarily NULL terminated. When retrieving it from @@ -58,11 +52,7 @@ struct registry_value { /* container for registry values */ -struct regval_ctr { - uint32 num_values; - struct regval_blob **values; - int seqnum; -}; +struct regval_ctr; /* container for registry subkey names */ diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c index 6765a7d7d0f..55559461280 100644 --- a/source3/registry/reg_objects.c +++ b/source3/registry/reg_objects.c @@ -25,6 +25,24 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_REGISTRY +/* low level structure to contain registry values */ + +struct regval_blob { + fstring valuename; + uint16 type; + /* this should be encapsulated in an RPC_DATA_BLOB */ + uint32 size; /* in bytes */ + uint8 *data_p; +}; + +/* container for registry values */ + +struct regval_ctr { + uint32 num_values; + struct regval_blob **values; + int seqnum; +}; + struct regsubkey_ctr { uint32_t num_subkeys; char **subkeys; -- 2.11.4.GIT