r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to use
[Samba/nascimento.git] / source3 / include / reg_objects.h
blobfff6fa16f79d5e2d0dd87f85897ce3731bb7f7fe
1 /*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Gerald Carter 2002-2005.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _REG_OBJECTS_H /* _REG_OBJECTS_H */
22 #define _REG_OBJECTS_H
24 /* structure to contain registry values */
26 typedef struct {
27 fstring valuename;
28 uint16 type;
29 /* this should be encapsulated in an RPC_DATA_BLOB */
30 uint32 size; /* in bytes */
31 uint8 *data_p;
32 } REGISTRY_VALUE;
34 /* container for registry values */
36 typedef struct {
37 uint32 num_values;
38 REGISTRY_VALUE **values;
39 } REGVAL_CTR;
41 /* container for registry subkey names */
43 typedef struct {
44 uint32 num_subkeys;
45 char **subkeys;
46 } REGSUBKEY_CTR;
48 #endif /* _REG_OBJECTS_H */