source: vendor/current/source4/cluster/cluster_private.h

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: 1.5 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3
4 private structures for clustering
5
6 Copyright (C) Andrew Tridgell 2006
7
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.
12
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.
17
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/>.
20*/
21
22#ifndef _CLUSTER_PRIVATE_H_
23#define _CLUSTER_PRIVATE_H_
24
25struct cluster_ops {
26 struct server_id (*cluster_id)(struct cluster_ops *ops, uint64_t id, uint32_t id2);
27 struct db_context *(*cluster_db_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 */
38};
39
40void cluster_set_ops(struct cluster_ops *new_ops);
41void cluster_local_init(void);
42
43#endif
Note: See TracBrowser for help on using the repository browser.