smbd: squash check_path_syntax() variants
[Samba.git] / ctdb / common / tunable.h
blob89f99f1644f9da9ab6ce92424211a2d2fa8ff8d8
1 /*
2 Tunable utilities
4 Copyright (C) Amitay Isaacs 2016
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 __CTDB_TUNABLE_H__
21 #define __CTDB_TUNABLE_H__
23 void ctdb_tunable_set_defaults(struct ctdb_tunable_list *tun_list);
24 bool ctdb_tunable_get_value(struct ctdb_tunable_list *tun_list,
25 const char *tunable_str, uint32_t *value);
26 bool ctdb_tunable_set_value(struct ctdb_tunable_list *tun_list,
27 const char *tunable_str, uint32_t value,
28 bool *obsolete);
29 struct ctdb_var_list *ctdb_tunable_names(TALLOC_CTX *mem_ctx);
30 char *ctdb_tunable_names_to_string(TALLOC_CTX *mem_ctx);
31 bool ctdb_tunable_load_file(TALLOC_CTX *mem_ctx,
32 struct ctdb_tunable_list *tun_list,
33 const char *file);
35 #endif /* __CTDB_TUNABLE_H__ */