s3:trusts_util: pass dcname to trust_pw_change()
[Samba.git] / source3 / lib / ctdb_dummy.c
blob2ed7b102a622b2d4e544f97a01ae37218c4a4612
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_ctdbd.h"
23 #include "ctdbd_conn.h"
24 #include "lib/dbwrap/dbwrap.h"
25 #include "lib/dbwrap/dbwrap_ctdb.h"
26 #include "torture/proto.h"
28 int ctdbd_probe(const char *sockname, int timeout)
30 return ENOSYS;
33 int ctdbd_messaging_send_iov(struct ctdbd_connection *conn,
34 uint32_t dst_vnn, uint64_t dst_srvid,
35 const struct iovec *iov, int iovlen)
37 return ENOSYS;
40 int register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
41 int (*cb)(uint32_t src_vnn, uint32_t dst_vnn,
42 uint64_t dst_srvid,
43 const uint8_t *msg, size_t msglen,
44 void *private_data),
45 void *private_data)
47 return ENOSYS;
50 int ctdbd_register_ips(struct ctdbd_connection *conn,
51 const struct sockaddr_storage *_server,
52 const struct sockaddr_storage *_client,
53 int (*cb)(uint32_t src_vnn, uint32_t dst_vnn,
54 uint64_t dst_srvid,
55 const uint8_t *msg, size_t msglen,
56 void *private_data),
57 void *private_data)
59 return ENOSYS;
62 bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32_t vnn, pid_t pid)
64 return false;
67 struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
68 struct messaging_context *msg_ctx,
69 struct ctdbd_connection *conn,
70 const char *name,
71 int hash_size, int tdb_flags,
72 int open_flags, mode_t mode,
73 enum dbwrap_lock_order lock_order,
74 uint64_t dbwrap_flags)
76 errno = ENOSYS;
77 return NULL;
80 int messaging_ctdbd_init(struct messaging_context *msg_ctx,
81 TALLOC_CTX *mem_ctx,
82 struct messaging_backend **presult)
84 return ENOSYS;
87 int messaging_ctdbd_reinit(struct messaging_context *msg_ctx,
88 TALLOC_CTX *mem_ctx,
89 struct messaging_backend *backend)
91 return ENOSYS;
94 struct ctdbd_connection *messaging_ctdbd_connection(void)
96 return NULL;
99 int ctdb_async_ctx_reinit(TALLOC_CTX *mem_ctx, struct tevent_context *ev)
101 return ENOSYS;