s3-docs: overrided -> overridden
[Samba/gebeck_regimport.git] / source4 / cluster / cluster_private.h
blob6f68ad62bd7680c0a9d9d147a960c54bd6a79074
1 /*
2 Unix SMB/CIFS implementation.
4 private structures for clustering
6 Copyright (C) Andrew Tridgell 2006
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _CLUSTER_PRIVATE_H_
23 #define _CLUSTER_PRIVATE_H_
25 struct cluster_ops {
26 struct server_id (*cluster_id)(struct cluster_ops *ops, uint64_t id, uint32_t id2);
27 struct tdb_wrap *(*cluster_tdb_tmp_open)(struct cluster_ops *,
28 TALLOC_CTX *,
29 struct loadparm_context *,
30 const char *, int);
31 void *(*backend_handle)(struct cluster_ops *);
32 NTSTATUS (*message_init)(struct cluster_ops *ops,
33 struct imessaging_context *msg, struct server_id server,
34 cluster_message_fn_t handler);
35 NTSTATUS (*message_send)(struct cluster_ops *ops,
36 struct server_id server, DATA_BLOB *data);
37 void *private_data; /* backend state */
40 void cluster_set_ops(struct cluster_ops *new_ops);
41 void cluster_local_init(void);
43 #endif