tevent: optimize adding new timer events
[Samba.git] / libcli / registry / util_reg.h
blob0250b4569e902eab3aa9b4a778215885683208e3
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
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.
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.
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/>.
22 #ifndef __LIBCLI_REGISTRY_UTIL_REG_H__
23 #define __LIBCLI_REGISTRY_UTIL_REG_H__
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);
32 #endif /* __LIBCLI_REGISTRY_UTIL_REG_H__ */