docs: Fix some typos in the idmap backend section.
[Samba.git] / source3 / lib / ctdb_dummy.c
blobdf05de757ef91b8143c93c63e4d00699067cbc6f
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 "ctdbd_conn.h"
23 #include "lib/dbwrap/dbwrap.h"
24 #include "lib/dbwrap/dbwrap_ctdb.h"
25 #include "torture/proto.h"
27 NTSTATUS ctdbd_probe(void)
29 return NT_STATUS_NOT_IMPLEMENTED;
32 NTSTATUS ctdbd_messaging_send_iov(struct ctdbd_connection *conn,
33 uint32_t dst_vnn, uint64_t dst_srvid,
34 const struct iovec *iov, int iovlen)
36 return NT_STATUS_NOT_IMPLEMENTED;
39 NTSTATUS register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
40 int (*cb)(uint32_t src_vnn, uint32_t dst_vnn,
41 uint64_t dst_srvid,
42 const uint8_t *msg, size_t msglen,
43 void *private_data),
44 void *private_data)
46 return NT_STATUS_NOT_IMPLEMENTED;
49 NTSTATUS ctdbd_register_ips(struct ctdbd_connection *conn,
50 const struct sockaddr_storage *_server,
51 const struct sockaddr_storage *_client,
52 int (*cb)(uint32_t src_vnn, uint32_t dst_vnn,
53 uint64_t dst_srvid,
54 const uint8_t *msg, size_t msglen,
55 void *private_data),
56 void *private_data)
58 return NT_STATUS_NOT_IMPLEMENTED;
61 const char *lp_ctdbd_socket(void)
63 return "";
66 bool ctdb_serverids_exist_supported(struct ctdbd_connection *conn)
68 return false;
71 bool ctdb_serverids_exist(struct ctdbd_connection *conn,
72 const struct server_id *pids, unsigned num_pids,
73 bool *results)
75 return false;
78 bool ctdb_processes_exist(struct ctdbd_connection *conn,
79 const struct server_id *pids, int num_pids,
80 bool *results)
82 return false;
85 struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
86 const char *name,
87 int hash_size, int tdb_flags,
88 int open_flags, mode_t mode,
89 enum dbwrap_lock_order lock_order,
90 uint64_t dbwrap_flags)
92 errno = ENOSYS;
93 return NULL;
96 NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx,
97 TALLOC_CTX *mem_ctx,
98 struct messaging_backend **presult)
100 return NT_STATUS_NOT_IMPLEMENTED;
103 struct ctdbd_connection *messaging_ctdbd_connection(void)
105 return NULL;