librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/bjacke.git] / source3 / utils / regedit.h
blobfb9ad6100d1a09c5c0a5a54257a0931bffd6e47c
1 /*
2 * Samba Unix/Linux SMB client library
3 * Registry Editor
4 * Copyright (C) Christopher Davis 2012
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 3 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, see <http://www.gnu.org/licenses/>.
20 #ifndef _REGEDIT_H_
21 #define _REGEDIT_H_
23 struct registry_context;
24 struct security_token;
25 struct registry_key;
27 struct samba3_registry_key {
28 struct registry_key *key;
31 WERROR reg_openhive_wrap(TALLOC_CTX *ctx, const char *hive,
32 struct samba3_registry_key *key);
33 WERROR reg_openkey_wrap(TALLOC_CTX *ctx, struct samba3_registry_key *parent,
34 const char *name, struct samba3_registry_key *key);
35 WERROR reg_enumvalue_wrap(TALLOC_CTX *ctx, struct samba3_registry_key *key,
36 uint32 idx, char **name, uint32_t *type, DATA_BLOB *data);
37 WERROR reg_queryvalue_wrap(TALLOC_CTX *ctx, struct samba3_registry_key *key,
38 const char *name, uint32_t *type, DATA_BLOB *data);
39 WERROR reg_enumkey_wrap(TALLOC_CTX *ctx, struct samba3_registry_key *key,
40 uint32 idx, char **name, NTTIME *last_write_time);
41 WERROR reg_createkey_wrap(TALLOC_CTX *ctx, struct samba3_registry_key *parent,
42 const char *subkeypath,
43 struct samba3_registry_key *pkey);
44 WERROR reg_deletekey_wrap(struct samba3_registry_key *parent,
45 const char *path);
46 WERROR reg_deletevalue_wrap(struct samba3_registry_key *key, const char *name);
47 WERROR reg_queryinfokey_wrap(struct samba3_registry_key *key,
48 uint32_t *num_subkeys, uint32_t *max_subkeylen,
49 uint32_t *max_subkeysize, uint32_t *num_values,
50 uint32_t *max_valnamelen,
51 uint32_t *max_valbufsize, uint32_t *secdescsize,
52 NTTIME *last_changed_time);
53 WERROR reg_setvalue_wrap(struct samba3_registry_key *key, const char *name,
54 uint32_t type, const DATA_BLOB data);
55 WERROR reg_init_wrap(void);
57 WERROR reg_open_samba3(TALLOC_CTX *mem_ctx, struct registry_context **ctx);
59 int regedit_getch(void);
61 #endif