s3:smbd: rename has_ctdb_public_ip to has_cluster_movable_ip
[Samba.git] / source3 / lib / ctdb_dummy.c
blob062fa999b0635bb3d90025a6228720138793bb3d
1 /*
2 Unix SMB/CIFS implementation.
3 Copyright (C) 2014 Björn Baumbach
4 Copyright (C) 2014 Stefan Metzmacher
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 #include "includes.h"
21 #include "messages.h"
22 #include "lib/messages_ctdb.h"
23 #include "lib/messages_ctdb_ref.h"
24 #include "ctdbd_conn.h"
25 #include "lib/dbwrap/dbwrap.h"
26 #include "lib/dbwrap/dbwrap_ctdb.h"
27 #include "torture/proto.h"
29 int ctdbd_probe(const char *sockname, int timeout)
31 return ENOSYS;
34 int ctdbd_messaging_send_iov(struct ctdbd_connection *conn,
35 uint32_t dst_vnn, uint64_t dst_srvid,
36 const struct iovec *iov, int iovlen)
38 return ENOSYS;
41 int register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
42 int (*cb)(struct tevent_context *ev,
43 uint32_t src_vnn, uint32_t dst_vnn,
44 uint64_t dst_srvid,
45 const uint8_t *msg, size_t msglen,
46 void *private_data),
47 void *private_data)
49 return ENOSYS;
52 int ctdbd_register_ips(struct ctdbd_connection *conn,
53 const struct sockaddr_storage *_server,
54 const struct sockaddr_storage *_client,
55 int (*cb)(struct tevent_context *ev,
56 uint32_t src_vnn, uint32_t dst_vnn,
57 uint64_t dst_srvid,
58 const uint8_t *msg, size_t msglen,
59 void *private_data),
60 void *private_data)
62 return ENOSYS;
65 int ctdbd_control_get_public_ips(struct ctdbd_connection *conn,
66 uint32_t flags,
67 TALLOC_CTX *mem_ctx,
68 struct ctdb_public_ip_list_old **_ips)
70 *_ips = NULL;
71 return ENOSYS;
74 bool ctdbd_find_in_public_ips(const struct ctdb_public_ip_list_old *ips,
75 const struct sockaddr_storage *ip)
77 return false;
80 bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32_t vnn,
81 pid_t pid, uint64_t unique_id)
83 return false;
86 struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
87 struct messaging_context *msg_ctx,
88 const char *name,
89 int hash_size, int tdb_flags,
90 int open_flags, mode_t mode,
91 enum dbwrap_lock_order lock_order,
92 uint64_t dbwrap_flags)
94 errno = ENOSYS;
95 return NULL;
98 int messaging_ctdb_send(uint32_t dst_vnn, uint64_t dst_srvid,
99 const struct iovec *iov, int iovlen)
101 return ENOSYS;
104 void *messaging_ctdb_ref(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
105 const char *sockname, int timeout, uint64_t unique_id,
106 void (*recv_cb)(struct tevent_context *ev,
107 const uint8_t *msg, size_t msg_len,
108 int *fds, size_t num_fds,
109 void *private_data),
110 void *private_data,
111 int *err)
113 return NULL;
116 struct messaging_ctdb_fde *messaging_ctdb_register_tevent_context(
117 TALLOC_CTX *mem_ctx, struct tevent_context *ev)
119 return NULL;
122 struct ctdbd_connection *messaging_ctdb_connection(void)
124 return NULL;
127 int ctdb_async_ctx_reinit(TALLOC_CTX *mem_ctx, struct tevent_context *ev)
129 return ENOSYS;