1/* Do not edit: automatically built by gen_msg.awk. */ 2 3#ifndef __rep_AUTO_H 4#define __rep_AUTO_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 12typedef 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 19typedef 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 31typedef struct ___rep_egen_args { 32 u_int32_t egen; 33} __rep_egen_args; 34 35#define __REP_FILEINFO_SIZE 36 36typedef 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} __rep_fileinfo_args; 47 48#define __REP_GRANT_INFO_SIZE 8 49typedef struct ___rep_grant_info_args { 50 u_int32_t msg_sec; 51 u_int32_t msg_nsec; 52} __rep_grant_info_args; 53 54#define __REP_LOGREQ_SIZE 8 55typedef struct ___rep_logreq_args { 56 DB_LSN endlsn; 57} __rep_logreq_args; 58 59#define __REP_NEWFILE_SIZE 4 60typedef struct ___rep_newfile_args { 61 u_int32_t version; 62} __rep_newfile_args; 63 64#define __REP_UPDATE_SIZE 16 65typedef struct ___rep_update_args { 66 DB_LSN first_lsn; 67 u_int32_t first_vers; 68 u_int32_t num_files; 69} __rep_update_args; 70 71#define __REP_VOTE_INFO_SIZE 20 72typedef struct ___rep_vote_info_args { 73 u_int32_t egen; 74 u_int32_t nsites; 75 u_int32_t nvotes; 76 u_int32_t priority; 77 u_int32_t tiebreaker; 78} __rep_vote_info_args; 79 80#define __REP_MAXMSG_SIZE 36 81#endif 82