summaryrefslogtreecommitdiff
path: root/dbinc_auto/repmgr_auto.h
blob: a04a7f8e6978c4c9a566bbed73cd9493b73321ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* Do not edit: automatically built by gen_msg.awk. */

#ifndef	__repmgr_AUTO_H
#define	__repmgr_AUTO_H

/*
 * Message sizes are simply the sum of field sizes (not
 * counting variable size parts, when DBTs are present),
 * and may be different from struct sizes due to padding.
 */
#define	__REPMGR_HANDSHAKE_SIZE	10
typedef struct ___repmgr_handshake_args {
	u_int16_t	port;
	u_int32_t	priority;
	u_int32_t	flags;
} __repmgr_handshake_args;

#define	__REPMGR_V2HANDSHAKE_SIZE	6
typedef struct ___repmgr_v2handshake_args {
	u_int16_t	port;
	u_int32_t	priority;
} __repmgr_v2handshake_args;

#define	__REPMGR_ACK_SIZE	12
typedef struct ___repmgr_ack_args {
	u_int32_t	generation;
	DB_LSN		lsn;
} __repmgr_ack_args;

#define	__REPMGR_VERSION_PROPOSAL_SIZE	8
typedef struct ___repmgr_version_proposal_args {
	u_int32_t	min;
	u_int32_t	max;
} __repmgr_version_proposal_args;

#define	__REPMGR_VERSION_CONFIRMATION_SIZE	4
typedef struct ___repmgr_version_confirmation_args {
	u_int32_t	version;
} __repmgr_version_confirmation_args;

#define	__REPMGR_MAXMSG_SIZE	12
#endif