4 Copyright (C) Ronnie sahlberg 2010
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/>.
23 struct ctdb_context *ctdb_connect(const char *addr);
25 int ctdb_get_fd(struct ctdb_context *ctdb);
27 int ctdb_which_events(struct ctdb_context *ctdb);
29 int ctdb_service(struct ctdb_context *ctdb);
33 typedef void ctdb_handle;
37 * function to cancel a request/call
39 int ctdb_cancel(ctdb_handle *);
43 * functions to read the recovery master of a node
45 typedef void (*get_recmaster_cb)(int32_t status, int32_t recmaster, void *private_data);
48 ctdb_getrecmaster_send(struct ctdb_context *ctdb,
50 get_recmaster_cb callback,
52 int ctdb_getrecmaster_recv(struct ctdb_context *ctdb,
55 int ctdb_getrecmaster(struct ctdb_context *ctdb,