GCS  0.2.3
gcs_params.h
1 /*
2  * Copyright (C) 2010-2014 Codership Oy <info@codership.com>
3  *
4  * $Id: gcs_params.h 3455 2014-02-01 18:11:09Z alex $
5  */
6 #ifndef _gcs_params_h_
7 #define _gcs_params_h_
8 
9 #include "galerautils.h"
10 
11 struct gcs_params
12 {
13  double fc_resume_factor;
14  double recv_q_soft_limit;
15  double max_throttle;
16  ssize_t recv_q_hard_limit;
17  long fc_base_limit;
18  long max_packet_size;
19  long fc_debug;
20  bool fc_master_slave;
21  bool sync_donor;
22 };
23 
24 extern const char* const GCS_PARAMS_FC_FACTOR;
25 extern const char* const GCS_PARAMS_FC_LIMIT;
26 extern const char* const GCS_PARAMS_FC_MASTER_SLAVE;
27 extern const char* const GCS_PARAMS_FC_DEBUG;
28 extern const char* const GCS_PARAMS_SYNC_DONOR;
29 extern const char* const GCS_PARAMS_MAX_PKT_SIZE;
30 extern const char* const GCS_PARAMS_RECV_Q_HARD_LIMIT;
31 extern const char* const GCS_PARAMS_RECV_Q_SOFT_LIMIT;
32 extern const char* const GCS_PARAMS_MAX_THROTTLE;
33 
35 extern void
36 gcs_params_register(gu_config_t* config);
37 
42 extern long
43 gcs_params_init (struct gcs_params* params, gu_config_t* config);
44 
45 #endif /* _gcs_params_h_ */
46 
Definition: gcs_params.h:11