summaryrefslogtreecommitdiffstats
path: root/src/replication/replicator/replicator-brain.h
blob: 6e9ae23c8c477dffe90df3f1a49bf58733be5dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef REPLICATOR_BRAIN_H
#define REPLICATOR_BRAIN_H

struct replicator_settings;
struct replicator_queue;

struct replicator_brain *
replicator_brain_init(struct replicator_queue *queue,
		      const struct replicator_settings *set);
void replicator_brain_deinit(struct replicator_brain **brain);

struct replicator_queue *
replicator_brain_get_queue(struct replicator_brain *brain);
const struct replicator_settings *
replicator_brain_get_settings(struct replicator_brain *brain);

const ARRAY_TYPE(dsync_client) *
replicator_brain_get_dsync_clients(struct replicator_brain *brain);

#endif