source: vendor/current/source3/lib/ctdb_dummy.c

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.4 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 Copyright (C) 2014 Björn Baumbach
4 Copyright (C) 2014 Stefan Metzmacher
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#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"
26
27int ctdbd_probe(const char *sockname, int timeout)
28{
29 return ENOSYS;
30}
31
32int ctdbd_messaging_send_iov(struct ctdbd_connection *conn,
33 uint32_t dst_vnn, uint64_t dst_srvid,
34 const struct iovec *iov, int iovlen)
35{
36 return ENOSYS;
37}
38
39int 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)
45{
46 return ENOSYS;
47}
48
49int 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)
57{
58 return ENOSYS;
59}
60
61bool ctdb_processes_exist(struct ctdbd_connection *conn,
62 const struct server_id *pids, int num_pids,
63 bool *results)
64{
65 return false;
66}
67
68bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32_t vnn, pid_t pid)
69{
70 return false;
71}
72
73struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
74 const char *name,
75 int hash_size, int tdb_flags,
76 int open_flags, mode_t mode,
77 enum dbwrap_lock_order lock_order,
78 uint64_t dbwrap_flags)
79{
80 errno = ENOSYS;
81 return NULL;
82}
83
84int messaging_ctdbd_init(struct messaging_context *msg_ctx,
85 TALLOC_CTX *mem_ctx,
86 struct messaging_backend **presult)
87{
88 return ENOSYS;
89}
90
91struct ctdbd_connection *messaging_ctdbd_connection(void)
92{
93 return NULL;
94}
Note: See TracBrowser for help on using the repository browser.