Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / src / dbinc_auto / rep_automsg.h
1 /* Do not edit: automatically built by gen_msg.awk. */
2
3 #ifndef __rep_AUTOMSG_H
4 #define __rep_AUTOMSG_H
5
6 /*
7  * Message sizes are simply the sum of field sizes (not
8  * counting variable size parts, when DBTs are present),
9  * and may be different from struct sizes due to padding.
10  */
11 #define __REP_BULK_SIZE 16
12 typedef struct ___rep_bulk_args {
13         u_int32_t       len;
14         DB_LSN          lsn;
15         DBT             bulkdata;
16 } __rep_bulk_args;
17
18 #define __REP_CONTROL_SIZE      36
19 typedef struct ___rep_control_args {
20         u_int32_t       rep_version;
21         u_int32_t       log_version;
22         DB_LSN          lsn;
23         u_int32_t       rectype;
24         u_int32_t       gen;
25         u_int32_t       msg_sec;
26         u_int32_t       msg_nsec;
27         u_int32_t       flags;
28 } __rep_control_args;
29
30 #define __REP_EGEN_SIZE 4
31 typedef struct ___rep_egen_args {
32         u_int32_t       egen;
33 } __rep_egen_args;
34
35 #define __REP_FILEINFO_SIZE     40
36 typedef struct ___rep_fileinfo_args {
37         u_int32_t       pgsize;
38         db_pgno_t       pgno;
39         db_pgno_t       max_pgno;
40         u_int32_t       filenum;
41         u_int32_t       finfo_flags;
42         u_int32_t       type;
43         u_int32_t       db_flags;
44         DBT             uid;
45         DBT             info;
46         DBT             dir;
47 } __rep_fileinfo_args;
48
49 #define __REP_FILEINFO_V6_SIZE  36
50 typedef struct ___rep_fileinfo_v6_args {
51         u_int32_t       pgsize;
52         db_pgno_t       pgno;
53         db_pgno_t       max_pgno;
54         u_int32_t       filenum;
55         u_int32_t       finfo_flags;
56         u_int32_t       type;
57         u_int32_t       db_flags;
58         DBT             uid;
59         DBT             info;
60 } __rep_fileinfo_v6_args;
61
62 #define __REP_GRANT_INFO_SIZE   8
63 typedef struct ___rep_grant_info_args {
64         u_int32_t       msg_sec;
65         u_int32_t       msg_nsec;
66 } __rep_grant_info_args;
67
68 #define __REP_LOGREQ_SIZE       8
69 typedef struct ___rep_logreq_args {
70         DB_LSN          endlsn;
71 } __rep_logreq_args;
72
73 #define __REP_NEWFILE_SIZE      4
74 typedef struct ___rep_newfile_args {
75         u_int32_t       version;
76 } __rep_newfile_args;
77
78 #define __REP_UPDATE_SIZE       16
79 typedef struct ___rep_update_args {
80         DB_LSN          first_lsn;
81         u_int32_t       first_vers;
82         u_int32_t       num_files;
83 } __rep_update_args;
84
85 #define __REP_VOTE_INFO_SIZE    28
86 typedef struct ___rep_vote_info_args {
87         u_int32_t       egen;
88         u_int32_t       nsites;
89         u_int32_t       nvotes;
90         u_int32_t       priority;
91         u_int32_t       spare_pri;
92         u_int32_t       tiebreaker;
93         u_int32_t       data_gen;
94 } __rep_vote_info_args;
95
96 #define __REP_VOTE_INFO_V5_SIZE 20
97 typedef struct ___rep_vote_info_v5_args {
98         u_int32_t       egen;
99         u_int32_t       nsites;
100         u_int32_t       nvotes;
101         u_int32_t       priority;
102         u_int32_t       tiebreaker;
103 } __rep_vote_info_v5_args;
104
105 #define __REP_LSN_HIST_KEY_SIZE 8
106 typedef struct ___rep_lsn_hist_key_args {
107         u_int32_t       version;
108         u_int32_t       gen;
109 } __rep_lsn_hist_key_args;
110
111 #define __REP_LSN_HIST_DATA_SIZE        20
112 typedef struct ___rep_lsn_hist_data_args {
113         u_int32_t       envid;
114         DB_LSN          lsn;
115         u_int32_t       hist_sec;
116         u_int32_t       hist_nsec;
117 } __rep_lsn_hist_data_args;
118
119 #define __REP_MAXMSG_SIZE       40
120 #endif