1 /* 2 * Unix SMB/CIFS implementation. 3 * Registry helper routines 4 * Copyright (C) Volker Lendecke 2006 5 * Copyright (C) Guenther Deschner 2009 6 * Copyright (C) Jelmer Vernooij 2003-2007 7 * 8 * This program is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License as published by the Free 10 * Software Foundation; either version 3 of the License, or (at your option) 11 * any later version. 12 * 13 * This program is distributed in the hope that it will be useful, but WITHOUT 14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 16 * more details. 17 * 18 * You should have received a copy of the GNU General Public License along with 19 * this program; if not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef __LIBCLI_REGISTRY_UTIL_REG_H__ 23 #define __LIBCLI_REGISTRY_UTIL_REG_H__ 24 25 const char *str_regtype(int type); 26 int regtype_by_string(const char *str); 27 bool push_reg_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char *s); 28 bool push_reg_multi_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char **a); 29 bool pull_reg_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char **s); 30 bool pull_reg_multi_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char ***a); 31 32 #endif /* __LIBCLI_REGISTRY_UTIL_REG_H__ */ 33