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 2 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, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _CLUSTER_PRIVATE_H_
24 #define _CLUSTER_PRIVATE_H_
27 struct server_id (*cluster_id
)(struct cluster_ops
*ops
, uint32_t id
);
28 const char *(*cluster_id_string
)(struct cluster_ops
*ops
,
29 TALLOC_CTX
*, struct server_id
);
30 struct tdb_wrap
*(*cluster_tdb_tmp_open
)(struct cluster_ops
*,
31 TALLOC_CTX
*, const char *, int);
32 void *(*backend_handle
)(struct cluster_ops
*);
33 NTSTATUS (*message_init
)(struct cluster_ops
*ops
,
34 struct messaging_context
*msg
, struct server_id server
,
35 cluster_message_fn_t handler
);
36 NTSTATUS (*message_send
)(struct cluster_ops
*ops
,
37 struct server_id server
, DATA_BLOB
*data
);
38 void *private; /* backend state */
41 void cluster_set_ops(struct cluster_ops
*new_ops
);
42 void cluster_local_init(void);