corosync  2.3.6
Data Structures | Macros | Enumerations
ipc_votequorum.h File Reference
#include <corosync/mar_gen.h>
Include dependency graph for ipc_votequorum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mar_votequorum_ring_id
 The mar_votequorum_ring_id struct. More...
 
struct  req_lib_votequorum_qdevice_register
 The req_lib_votequorum_qdevice_register struct. More...
 
struct  req_lib_votequorum_qdevice_unregister
 The req_lib_votequorum_qdevice_unregister struct. More...
 
struct  req_lib_votequorum_qdevice_update
 The req_lib_votequorum_qdevice_update struct. More...
 
struct  req_lib_votequorum_qdevice_poll
 The req_lib_votequorum_qdevice_poll struct. More...
 
struct  req_lib_votequorum_qdevice_master_wins
 The req_lib_votequorum_qdevice_master_wins struct. More...
 
struct  req_lib_votequorum_setvotes
 The req_lib_votequorum_setvotes struct. More...
 
struct  req_lib_votequorum_setexpected
 The req_lib_votequorum_setexpected struct. More...
 
struct  req_lib_votequorum_trackstart
 The req_lib_votequorum_trackstart struct. More...
 
struct  req_lib_votequorum_general
 The req_lib_votequorum_general struct. More...
 
struct  req_lib_votequorum_getinfo
 The req_lib_votequorum_getinfo struct. More...
 
struct  res_lib_votequorum_status
 The res_lib_votequorum_status struct. More...
 
struct  res_lib_votequorum_getinfo
 The res_lib_votequorum_getinfo struct. More...
 
struct  votequorum_node
 The votequorum_node struct. More...
 
struct  res_lib_votequorum_notification
 The res_lib_votequorum_notification struct. More...
 
struct  res_lib_votequorum_expectedvotes_notification
 The res_lib_votequorum_expectedvotes_notification struct. More...
 

Macros

#define VOTEQUORUM_QDEVICE_NODEID   0
 
#define VOTEQUORUM_QDEVICE_MAX_NAME_LEN   255
 
#define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT   10000
 
#define VOTEQUORUM_INFO_TWONODE   1
 
#define VOTEQUORUM_INFO_QUORATE   2
 
#define VOTEQUORUM_INFO_WAIT_FOR_ALL   4
 
#define VOTEQUORUM_INFO_LAST_MAN_STANDING   8
 
#define VOTEQUORUM_INFO_AUTO_TIE_BREAKER   16
 
#define VOTEQUORUM_INFO_ALLOW_DOWNSCALE   32
 
#define VOTEQUORUM_INFO_QDEVICE_REGISTERED   64
 
#define VOTEQUORUM_INFO_QDEVICE_ALIVE   128
 
#define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE   256
 
#define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS   512
 
#define VOTEQUORUM_NODESTATE_MEMBER   1
 
#define VOTEQUORUM_NODESTATE_DEAD   2
 
#define VOTEQUORUM_NODESTATE_LEAVING   3
 

Enumerations

enum  req_votequorum_types {
  MESSAGE_REQ_VOTEQUORUM_GETINFO = 0, MESSAGE_REQ_VOTEQUORUM_SETEXPECTED, MESSAGE_REQ_VOTEQUORUM_SETVOTES, MESSAGE_REQ_VOTEQUORUM_TRACKSTART,
  MESSAGE_REQ_VOTEQUORUM_TRACKSTOP, MESSAGE_REQ_VOTEQUORUM_QDEVICE_REGISTER, MESSAGE_REQ_VOTEQUORUM_QDEVICE_UNREGISTER, MESSAGE_REQ_VOTEQUORUM_QDEVICE_UPDATE,
  MESSAGE_REQ_VOTEQUORUM_QDEVICE_POLL, MESSAGE_REQ_VOTEQUORUM_QDEVICE_MASTER_WINS
}
 The req_votequorum_types enum. More...
 
enum  res_votequorum_types {
  MESSAGE_RES_VOTEQUORUM_STATUS = 0, MESSAGE_RES_VOTEQUORUM_GETINFO, MESSAGE_RES_VOTEQUORUM_TRACKSTART, MESSAGE_RES_VOTEQUORUM_NOTIFICATION,
  MESSAGE_RES_VOTEQUORUM_EXPECTEDVOTES_NOTIFICATION
}
 The res_votequorum_types enum. More...
 

Macro Definition Documentation

#define VOTEQUORUM_INFO_ALLOW_DOWNSCALE   32

Definition at line 175 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_AUTO_TIE_BREAKER   16

Definition at line 174 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_LAST_MAN_STANDING   8

Definition at line 173 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_QDEVICE_ALIVE   128

Definition at line 177 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE   256

Definition at line 178 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS   512

Definition at line 179 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_QDEVICE_REGISTERED   64

Definition at line 176 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_QUORATE   2

Definition at line 171 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_TWONODE   1

Definition at line 170 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_INFO_WAIT_FOR_ALL   4

Definition at line 172 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_NODESTATE_DEAD   2

Definition at line 182 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_NODESTATE_LEAVING   3

Definition at line 183 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_NODESTATE_MEMBER   1

Definition at line 181 of file ipc_votequorum.h.

Referenced by votequorum_init().

#define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT   10000

Definition at line 41 of file ipc_votequorum.h.

#define VOTEQUORUM_QDEVICE_MAX_NAME_LEN   255
#define VOTEQUORUM_QDEVICE_NODEID   0

Definition at line 39 of file ipc_votequorum.h.

Referenced by votequorum_init().

Enumeration Type Documentation

The req_votequorum_types enum.

Enumerator
MESSAGE_REQ_VOTEQUORUM_GETINFO 
MESSAGE_REQ_VOTEQUORUM_SETEXPECTED 
MESSAGE_REQ_VOTEQUORUM_SETVOTES 
MESSAGE_REQ_VOTEQUORUM_TRACKSTART 
MESSAGE_REQ_VOTEQUORUM_TRACKSTOP 
MESSAGE_REQ_VOTEQUORUM_QDEVICE_REGISTER 
MESSAGE_REQ_VOTEQUORUM_QDEVICE_UNREGISTER 
MESSAGE_REQ_VOTEQUORUM_QDEVICE_UPDATE 
MESSAGE_REQ_VOTEQUORUM_QDEVICE_POLL 
MESSAGE_REQ_VOTEQUORUM_QDEVICE_MASTER_WINS 

Definition at line 46 of file ipc_votequorum.h.

The res_votequorum_types enum.

Enumerator
MESSAGE_RES_VOTEQUORUM_STATUS 
MESSAGE_RES_VOTEQUORUM_GETINFO 
MESSAGE_RES_VOTEQUORUM_TRACKSTART 
MESSAGE_RES_VOTEQUORUM_NOTIFICATION 
MESSAGE_RES_VOTEQUORUM_EXPECTEDVOTES_NOTIFICATION 

Definition at line 62 of file ipc_votequorum.h.