1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2001,2008 Oracle.  All rights reserved.
5 *
6 * $Id: RepConfigInfo.h,v 1.6 2008/01/08 20:58:27 bostic Exp $
7 */
8#include <db_cxx.h>
9
10// Chainable struct used to store host information.
11typedef struct RepHostInfoObj{
12	char* host;
13	int port;
14	bool peer; // only relevant for "other" hosts
15	RepHostInfoObj* next; // used for chaining multiple "other" hosts.
16} REP_HOST_INFO;
17
18class RepConfigInfo {
19public:
20	RepConfigInfo();
21	virtual ~RepConfigInfo();
22
23	void addOtherHost(char* host, int port, bool peer);
24public:
25	u_int32_t start_policy;
26	char* home;
27	bool got_listen_address;
28	REP_HOST_INFO this_host;
29	int totalsites;
30	int priority;
31	bool verbose;
32	// used to store a set of optional other hosts.
33	REP_HOST_INFO *other_hosts;
34};
35