version incremented
[samba] / source / include / reg_objects.h
1 /* 
2    Unix SMB/CIFS implementation.
3    SMB parameters and setup
4    Copyright (C) Gerald Carter                   2002-2005.
5    
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.
10    
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.
15    
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.
19 */
20
21 #ifndef _REG_OBJECTS_H /* _REG_OBJECTS_H */
22 #define _REG_OBJECTS_H
23
24 /* structure to contain registry values */
25
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;
33
34 /* container for registry values */
35
36 typedef struct {
37         uint32          num_values;
38         REGISTRY_VALUE  **values;
39 } REGVAL_CTR;
40
41 /* container for registry subkey names */
42
43 typedef struct {
44         uint32          num_subkeys;
45         char            **subkeys;
46 } REGSUBKEY_CTR;
47
48 #endif /* _REG_OBJECTS_H */
49