8b330fb0a3bcd0ad6a00541940d85865701c8401
[abartlet/samba.git/.git] / source3 / registry / reg_util_legacy.h
1 /* 
2  *  Unix SMB/CIFS implementation.
3  *  Virtual Windows Registry Layer
4  *  Copyright (C) Gerald Carter                     2002-2005
5  *  Copyright (C) Michael Adam                      2009
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 3 of the License, or
10  *  (at your option) any later version.
11  *  
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *  
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef _REG_UTIL_LEGACY_H
22 #define _REG_UTIL_LEGACY_H
23
24 /*
25  * This module contains legacy code code from the old regkey
26  * interface that is now mostly hidden behind the reg_api interface.
27  * This code should be removed once the last users of the old code
28  * have been converted.
29  */
30
31 #include "includes.h"
32 #include "registry.h"
33
34 /**
35  * legacy open key function that should be replaced by uses of
36  * reg_open_path
37  */
38
39 WERROR regkey_open_internal(TALLOC_CTX *ctx,
40                             struct registry_key_handle **regkey,
41                             const char *path,
42                             const struct nt_user_token *token,
43                             uint32 access_desired );
44
45 #endif /* _REG_UTIL_LEGACY_H */