mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-15 05:06:18 +00:00
change message source to use conn_info field instead of fd.
Also removed a few unneeded calls which were moved to the amf.c file. (Logical change 1.24) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@65 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
ae695b04d0
commit
405795d134
@ -38,18 +38,15 @@
|
||||
#include "ais_types.h"
|
||||
|
||||
enum req_amf_response_interfaces {
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFHEALTHCHECKCALLBACK = 0x10000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFREADINESSSTATESETCALLBACK = 0x20000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCOMPONENTTERMINATECALLBACK = 0x30000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCSISETCALLBACK = 0x40000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCSIREMOVECALLBACK = 0x50000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTRESTARTCALLBACK = 0x60000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTCONTROLCALLBACK = 0x70000000,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFPENDINGOPERATIONCONFIRMCALLBACK = 0x80000000
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFHEALTHCHECKCALLBACK = 1,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFREADINESSSTATESETCALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCOMPONENTTERMINATECALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCSISETCALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFCSIREMOVECALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTRESTARTCALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTCONTROLCALLBACK,
|
||||
MESSAGE_REQ_AMF_RESPONSE_SAAMFPENDINGOPERATIONCONFIRMCALLBACK
|
||||
};
|
||||
#define req_amf_response_get_interface(a) (a & 0xf0000000)
|
||||
#define req_amf_response_get_connection(a) (a & 0x0fffffff)
|
||||
#define req_amf_response_set(interface,connection) (interface | connection)
|
||||
|
||||
enum req_init_types {
|
||||
MESSAGE_REQ_CLM_INIT,
|
||||
@ -185,7 +182,7 @@ struct message_header {
|
||||
};
|
||||
|
||||
struct message_source {
|
||||
int fd;
|
||||
struct conn_info *conn_info;
|
||||
struct in_addr in_addr;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user