ctdb-common: Use correct return type for tevent_queue_add_entry
[vlendec/samba-autobuild/.git] / ctdb / common / tunable.h
1 /*
2    Tunable utilities
3
4    Copyright (C) Amitay Isaacs  2016
5
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.
10
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.
15
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/>.
18 */
19
20 #ifndef __CTDB_TUNABLE_H__
21 #define __CTDB_TUNABLE_H__
22
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
32 #endif /* __CTDB_TUNABLE_H__ */