|
version 1.2, 2003/06/12 13:53:07
|
version 1.3, 2003/06/12 13:54:59
|
|
|
|
| * | * |
| * See oc_cmp_uniqueid() for comparing them. | * See oc_cmp_uniqueid() for comparing them. |
| * | * |
| * The meaning of the unode field is not defined by this specification. |
* The meaning of the uniqueid field is not defined by this specification. |
| * It may be the node_id of a node in the cluster or it may be a unique | * It may be the node_id of a node in the cluster or it may be a unique |
| * checksum or it may be some other value. All that is specified is that | * checksum or it may be some other value. All that is specified is that |
| * it and the m_instance are unique when taken as a whole. | * it and the m_instance are unique when taken as a whole. |
| */ | */ |
| |
typedef unsigned char oc_mbr_uuid[16]; |
| struct oc_member_uniqueid_s { | struct oc_member_uniqueid_s { |
| unsigned m_instance; | unsigned m_instance; |
| oc_node_id_t unode; |
oc_mbr_uniqueid uniqueid; |
| }; | }; |
| /* | /* |
| * This enumeration is used both to indicated the type of an event | * This enumeration is used both to indicated the type of an event |
|
|
|
| /* | /* |
| * if l.m_instance < r.m_instance then return -1 | * if l.m_instance < r.m_instance then return -1 |
| * if r.m_instance > r.m_instance then return 1 | * if r.m_instance > r.m_instance then return 1 |
| * if l.m_instance == r.m_instance and l.unode == r.unode |
* if l.m_instance == r.m_instance and l.uniqueid == r.uniqueid |
| * then return 0 | * then return 0 |
| * otherwise return 2 | * otherwise return 2 |
| */ | */ |