script/autobuild.py: remove --rebase-master and --push-master options
[Samba/gebeck_regimport.git] / source3 / registry / reg_api_util.h
blobb5ce0fdbe47bc7c75f47aa1ec30d406912b5970c
1 /*
2 * Unix SMB/CIFS implementation.
3 * Virtual Windows Registry Layer
4 * Copyright (C) Volker Lendecke 2006
5 * Copyright (C) Michael Adam 2007-2010
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.
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.
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/>.
22 * Higher level utility functions on top of reg_api.c
25 #ifndef _REG_API_UTIL_H
26 #define _REG_API_UTIL_H
28 /**
29 * Utility function to open a complete registry path including the hive prefix.
31 WERROR reg_open_path(TALLOC_CTX *mem_ctx, const char *orig_path,
32 uint32 desired_access, const struct security_token *token,
33 struct registry_key **pkey);
35 WERROR reg_create_path(TALLOC_CTX *mem_ctx, const char *orig_path,
36 uint32 desired_access,
37 const struct security_token *token,
38 enum winreg_CreateAction *paction,
39 struct registry_key **pkey);
40 WERROR reg_delete_path(const struct security_token *token,
41 const char *orig_path);
43 struct registry_value *registry_value_dw(TALLOC_CTX *mem_ctx, uint32_t dw);
44 struct registry_value *registry_value_sz(TALLOC_CTX *mem_ctx, const char *str);
45 struct registry_value *registry_value_multi_sz(TALLOC_CTX *mem_ctx, const char **str);
47 int registry_value_cmp(const struct registry_value *v1, const struct registry_value *v2);
49 #endif /* _REG_API_UTIL_H */