📄 mxi.h
字号:
* ------------------------------------------------------------------------- */typedef struct MX_optmgmt_ack { mx_ulong mx_primitive; /* always MX_OPTMGMT_REQ */ mx_ulong mx_opt_length; /* length of options */ mx_ulong mx_opt_offset; /* offset of options */ mx_ulong mx_mgmt_flags; /* option flags */} MX_optmgmt_ack_t;/* management flags for MX_OPTMGMT */#define MX_SET_OPT 0x01#define MX_GET_OPT 0x02#define MX_NEGOTIATE 0x03#define MX_DEFAULT 0x04/* * MX_ATTACH_REQ * ------------------------------------------------------------------------- */typedef struct MX_attach_req { mx_ulong mx_primitive; /* always MX_ATTACH_REQ */ mx_ulong mx_addr_length; /* length of multiplex address */ mx_ulong mx_addr_offset; /* offset of multiplex address */ mx_ulong mx_flags; /* options flags */} MX_attach_req_t;/* * MX_DETACH_REQ * ------------------------------------------------------------------------- */typedef struct MX_detach_req { mx_ulong mx_primitive; /* always MX_DETACH_REQ */} MX_detach_req_t;/* * MX_OK_ACK * ------------------------------------------------------------------------- */typedef struct MX_ok_ack { mx_ulong mx_primitive; /* always MX_OK_ACK */ mx_ulong mx_correct_prim; /* correct primitive */ mx_ulong mx_state; /* resulting state */} MX_ok_ack_t;/* * MX_ERROR_ACK * ------------------------------------------------------------------------- */typedef struct MX_error_ack { mx_ulong mx_primitive; /* always MX_ERROR_ACK */ mx_ulong mx_error_primitive; /* primitive in error */ mx_ulong mx_error_type; /* MXI error */ mx_ulong mx_unix_error; /* UNIX error */ mx_ulong mx_state; /* resulting state */} MX_error_ack_t;/* error types */#define MXSYSERR 0 /* UNIX system error */#define MXBADADDR 1 /* Bad address format or content */#define MXOUTSTATE 2 /* Interface out of state */#define MXBADOPT 3 /* Bad options format or content */#define MXBADPARM 4 /* Bad parameter format or content */#define MXBADPARMTYPE 5 /* Bad paramater structure type */#define MXBADFLAG 6 /* Bad flag */#define MXBADPRIM 7 /* Bad primitive */#define MXNOTSUPP 8 /* Primitive not supported */#define MXBADSLOT 9 /* Bad multplex slot *//* * MX_ENABLE_REQ * ------------------------------------------------------------------------- */typedef struct MX_enable_req { mx_ulong mx_primitive; /* always MX_ENABLE_REQ */} MX_enable_req_t;/* * MX_ENABLE_CON * ------------------------------------------------------------------------- */typedef struct MX_enable_con { mx_ulong mx_primitive; /* always MX_ENABLE_CON */} MX_enable_con_t;/* * MX_DISABLE_REQ * ------------------------------------------------------------------------- */typedef struct MX_disable_req { mx_ulong mx_primitive; /* always MX_DISABLE_REQ */} MX_disable_req_t;/* * MX_DISABLE_IND * ------------------------------------------------------------------------- */typedef struct MX_disable_ind { mx_ulong mx_primitive; /* always MX_DISABLE_IND */ mx_ulong mx_cause; /* cause for disable */} MX_disable_ind_t;/* * MX_DISABLE_CON * ------------------------------------------------------------------------- */typedef struct MX_disable_con { mx_ulong mx_primitive; /* always MX_DISABLE_CON */} MX_disable_con_t;/* * MX_DATA_REQ * ------------------------------------------------------------------------- */typedef struct MX_data_req { mx_ulong mx_primitive; /* always MX_DATA_REQ */ mx_ulong mx_slot; /* slot within multiplex */} MX_data_req_t;/* * MX_DATA_IND * ------------------------------------------------------------------------- */typedef struct MX_data_ind { mx_ulong mx_primitive; /* always MX_DATA_IND */ mx_ulong mx_slot; /* slot within multiplex */} MX_data_ind_t;/* * MX_CONNECT_REQ * ------------------------------------------------------------------------- */typedef struct MX_connect_req { mx_ulong mx_primitive; /* always MX_CONNECT_REQ */ mx_ulong mx_conn_flags; /* direction to connect */ mx_ulong mx_slot; /* slot within multiplex */} MX_connect_req_t;/* connect flags */#define MXF_RX_DIR 0x01#define MXF_TX_DIR 0x02#define MXF_BOTH_DIR (MXF_RX_DIR|MXF_TX_DIR)/* * MX_CONNECT_CON * ------------------------------------------------------------------------- */typedef struct MX_connect_con { mx_ulong mx_primitive; /* always MX_CONNECT_CON */ mx_ulong mx_conn_flags; /* direction connected */ mx_ulong mx_slot; /* slot within multiplex */} MX_connect_con_t;/* * MX_DISCONNECT_REQ * ------------------------------------------------------------------------- */typedef struct MX_disconnect_req { mx_ulong mx_primitive; /* always MX_DISCONNECT_REQ */ mx_ulong mx_conn_flags; /* direction to disconnect */ mx_ulong mx_slot; /* slot within multiplex */} MX_disconnect_req_t;/* * MX_DISCONNECT_IND * ------------------------------------------------------------------------- */typedef struct MX_disconnect_ind { mx_ulong mx_primitive; /* always MX_DISCONNECT_IND */ mx_ulong mx_conn_flags; /* direction disconnected */ mx_ulong mx_cause; /* cause for disconnection */ mx_ulong mx_slot; /* slot within multiplex */} MX_disconnect_ind_t;/* * MX_DISCONNECT_CON * ------------------------------------------------------------------------- */typedef struct MX_disconnect_con { mx_ulong mx_primitive; /* always MX_DISCONNECT_CON */ mx_ulong mx_conn_flags; /* direction disconnected */ mx_ulong mx_slot; /* slot within multiplex */} MX_disconnect_con_t;/* * MX_EVENT_IND * ------------------------------------------------------------------------- */typedef struct MX_event_ind { ch_ulong ch_primitive; /* always MX_EVENT_IND */ ch_ulong ch_event; /* event */ ch_ulong ch_slot; /* slot within channel for event */} MX_event_ind_t;#define MX_EVT_DCD_ASSERT 0#define MX_EVT_DCD_DEASSERT 1#define MX_EVT_DSR_ASSERT 2#define MX_EVT_DSR_DEASSERT 3#define MX_EVT_DTR_ASSERT 4#define MX_EVT_DTR_DEASSERT 5#define MX_EVT_RTS_ASSERT 6#define MX_EVT_RTS_DEASSERT 7#define MX_EVT_CTS_ASSERT 8#define MX_EVT_CTS_DEASSERT 9#define MX_EVT_RI_ASSERT 10#define MX_EVT_RI_DEASSERT 11#define MX_EVT_YEL_ALARM 12#define MX_EVT_BLU_ALARM 13#define MX_EVT_RED_ALARM 14#define MX_EVT_NO_ALARM 15#define MXF_EVT_DCD_ASSERT (1 << 0)#define MXF_EVT_DCD_DEASSERT (1 << 1)#define MXF_EVT_DSR_ASSERT (1 << 2)#define MXF_EVT_DSR_DEASSERT (1 << 3)#define MXF_EVT_DTR_ASSERT (1 << 4)#define MXF_EVT_DTR_DEASSERT (1 << 5)#define MXF_EVT_RTS_ASSERT (1 << 6)#define MXF_EVT_RTS_DEASSERT (1 << 7)#define MXF_EVT_CTS_ASSERT (1 << 8)#define MXF_EVT_CTS_DEASSERT (1 << 9)#define MXF_EVT_RI_ASSERT (1 << 10)#define MXF_EVT_RI_DEASSERT (1 << 11)#define MXF_EVT_YEL_ALARM (1 << 12)#define MXF_EVT_BLU_ALARM (1 << 13)#define MXF_EVT_RED_ALARM (1 << 14)#define MXF_EVT_NO_ALARM (1 << 15)#define MXF_EVT_DCD_CHANGE (MXF_EVT_DCD_ASSERT|MXF_EVT_DCD_DEASSERT)#define MXF_EVT_DSR_CHANGE (MXF_EVT_DSR_ASSERT|MXF_EVT_DSR_DEASSERT)#define MXF_EVT_DTR_CHANGE (MXF_EVT_DTR_ASSERT|MXF_EVT_DTR_DEASSERT)#define MXF_EVT_RTS_CHANGE (MXF_EVT_RTS_ASSERT|MXF_EVT_RTS_DEASSERT)#define MXF_EVT_CTS_CHANGE (MXF_EVT_CTS_ASSERT|MXF_EVT_CTS_DEASSERT)#define MXF_EVT_RI_CHANGE (MXF_EVT_RI_ASSERT|MXF_EVT_RI_DEASSERT)#endif /* __SS7_MXI_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -