| 1 | #cxx . . $ `<file>/include/osmocom/sigtran/sigtran_sap.h`/pragma once |
| 2 | #include <osmocom/core/prim.h> |
| 3 | #include <osmocom/sigtran/osmo_ss7.h>cxx . . $ `<file>/include/osmocom/sigtran/osmo_ss7.h`/ |
| 4 | |
| 5 | |
| 6 | enum osmo_sigtran_sapcxx . . $ osmo_sigtran_sap# { |
| 7 | SCCP_SAP_USERcxx . . $ SCCP_SAP_USER. = _SAP_SS7_BASEcxx . . $ `<external>/7802920865967612370/prim.h:44:9`!, |
| 8 | /* xUA Layer Manager */ |
| 9 | XUA_SAP_LMcxx . . $ XUA_SAP_LM., |
| 10 | MTP_SAP_USERcxx . . $ MTP_SAP_USER., |
| 11 | }; |
| 12 | |
| 13 | enum osmo_xlm_prim_typecxx . . $ osmo_xlm_prim_type# { |
| 14 | OSMO_XLM_PRIM_M_SCTP_ESTABLISHcxx . . $ OSMO_XLM_PRIM_M_SCTP_ESTABLISH., |
| 15 | OSMO_XLM_PRIM_M_SCTP_RELEASEcxx . . $ OSMO_XLM_PRIM_M_SCTP_RELEASE., |
| 16 | OSMO_XLM_PRIM_M_SCTP_RESTARTcxx . . $ OSMO_XLM_PRIM_M_SCTP_RESTART., |
| 17 | OSMO_XLM_PRIM_M_SCTP_STATUScxx . . $ OSMO_XLM_PRIM_M_SCTP_STATUS., |
| 18 | OSMO_XLM_PRIM_M_ASP_STATUScxx . . $ OSMO_XLM_PRIM_M_ASP_STATUS., |
| 19 | OSMO_XLM_PRIM_M_AS_STATUScxx . . $ OSMO_XLM_PRIM_M_AS_STATUS., |
| 20 | OSMO_XLM_PRIM_M_NOTIFYcxx . . $ OSMO_XLM_PRIM_M_NOTIFY., |
| 21 | OSMO_XLM_PRIM_M_ERRORcxx . . $ OSMO_XLM_PRIM_M_ERROR., |
| 22 | OSMO_XLM_PRIM_M_ASP_UPcxx . . $ OSMO_XLM_PRIM_M_ASP_UP., |
| 23 | OSMO_XLM_PRIM_M_ASP_DOWNcxx . . $ OSMO_XLM_PRIM_M_ASP_DOWN., |
| 24 | OSMO_XLM_PRIM_M_ASP_ACTIVEcxx . . $ OSMO_XLM_PRIM_M_ASP_ACTIVE., |
| 25 | OSMO_XLM_PRIM_M_ASP_INACTIVEcxx . . $ OSMO_XLM_PRIM_M_ASP_INACTIVE., |
| 26 | OSMO_XLM_PRIM_M_AS_ACTIVEcxx . . $ OSMO_XLM_PRIM_M_AS_ACTIVE., |
| 27 | OSMO_XLM_PRIM_M_AS_INACTIVEcxx . . $ OSMO_XLM_PRIM_M_AS_INACTIVE., |
| 28 | OSMO_XLM_PRIM_M_AS_DOWNcxx . . $ OSMO_XLM_PRIM_M_AS_DOWN., |
| 29 | /* optional as per spec, not implemented yet */ |
| 30 | OSMO_XLM_PRIM_M_RK_REGcxx . . $ OSMO_XLM_PRIM_M_RK_REG., |
| 31 | OSMO_XLM_PRIM_M_RK_DEREGcxx . . $ OSMO_XLM_PRIM_M_RK_DEREG., |
| 32 | }; |
| 33 | |
| 34 | #define NOTIFY_PAR_P_ASP_IDcxx . . $ `include/osmocom/sigtran/sigtran_sap.h:34:9`! (1 << 0) |
| 35 | #define NOTIFY_PAR_P_ROUTE_CTXcxx . . $ `include/osmocom/sigtran/sigtran_sap.h:35:9`! (1 << 1) |
| 36 | |
| 37 | struct osmo_xlm_prim_notifycxx . . $ osmo_xlm_prim_notify# { |
| 38 | uint32_tcxx . . $ uint32_t# presencecxx . . $ osmo_xlm_prim_notify#presence.; |
| 39 | uint16_tcxx . . $ uint16_t# status_typecxx . . $ osmo_xlm_prim_notify#status_type.; |
| 40 | uint16_tcxx . . $ uint16_t# status_infocxx . . $ osmo_xlm_prim_notify#status_info.; |
| 41 | uint32_tcxx . . $ uint32_t# asp_idcxx . . $ osmo_xlm_prim_notify#asp_id.; |
| 42 | uint32_tcxx . . $ uint32_t# route_ctxcxx . . $ osmo_xlm_prim_notify#route_ctx.; |
| 43 | char *info_stringcxx . . $ osmo_xlm_prim_notify#info_string.; |
| 44 | }; |
| 45 | |
| 46 | struct osmo_xlm_prim_errorcxx . . $ osmo_xlm_prim_error# { |
| 47 | uint32_tcxx . . $ uint32_t# codecxx . . $ osmo_xlm_prim_error#code.; |
| 48 | }; |
| 49 | |
| 50 | struct osmo_xlm_prim_rk_regcxx . . $ osmo_xlm_prim_rk_reg# { |
| 51 | /* routing key */ |
| 52 | struct osmo_ss7_routing_keycxx . . $ osmo_ss7_routing_key# keycxx . . $ osmo_xlm_prim_rk_reg#key.; |
| 53 | enum osmo_ss7_as_traffic_modecxx . . $ osmo_ss7_as_traffic_mode# traf_modecxx . . $ osmo_xlm_prim_rk_reg#traf_mode.; |
| 54 | |
| 55 | /* Status: Confirm only */ |
| 56 | uint32_tcxx . . $ uint32_t# statuscxx . . $ osmo_xlm_prim_rk_reg#status.; |
| 57 | }; |
| 58 | |
| 59 | struct osmo_xlm_prim_rk_deregcxx . . $ osmo_xlm_prim_rk_dereg# { |
| 60 | uint32_tcxx . . $ uint32_t# route_ctxcxx . . $ osmo_xlm_prim_rk_dereg#route_ctx.; |
| 61 | |
| 62 | /* Status: Confirm only */ |
| 63 | uint32_tcxx . . $ uint32_t# statuscxx . . $ osmo_xlm_prim_rk_dereg#status.; |
| 64 | }; |
| 65 | |
| 66 | struct osmo_xlm_primcxx . . $ osmo_xlm_prim# { |
| 67 | struct osmo_prim_hdrcxx . . $ osmo_prim_hdr# ophcxx . . $ osmo_xlm_prim#oph.; |
| 68 | unioncxx . . $ osmo_xlm_prim#$anonymous_type_0# { |
| 69 | struct osmo_xlm_prim_notifycxx . . $ osmo_xlm_prim_notify# notifycxx . . $ osmo_xlm_prim#$anonymous_type_0#notify.; |
| 70 | struct osmo_xlm_prim_errorcxx . . $ osmo_xlm_prim_error# errorcxx . . $ osmo_xlm_prim#$anonymous_type_0#error.; |
| 71 | struct osmo_xlm_prim_rk_regcxx . . $ osmo_xlm_prim_rk_reg# rk_regcxx . . $ osmo_xlm_prim#$anonymous_type_0#rk_reg.; |
| 72 | struct osmo_xlm_prim_rk_deregcxx . . $ osmo_xlm_prim_rk_dereg# rk_deregcxx . . $ osmo_xlm_prim#$anonymous_type_0#rk_dereg.; |
| 73 | } ucxx . . $ osmo_xlm_prim#u.; |
| 74 | }; |
| 75 | |
| 76 | #define msgb_xlm_primcxx . . $ `include/osmocom/sigtran/sigtran_sap.h:76:9`!(msg) ((struct osmo_xlm_prim *)(msg)->l1h) |
| 77 | |
| 78 | char *osmo_xlm_prim_namecxx . . $ osmo_xlm_prim_name(c8fb8af7feff48ac).(struct osmo_prim_hdrcxx . . $ osmo_prim_hdr# *oph); |
| 79 | |
| 80 | /* XUA LM-SAP towards stack */ |
| 81 | int osmo_xlm_sap_downcxx . . $ osmo_xlm_sap_down(6ac5033cb98a1472).(struct osmo_ss7_aspcxx . . $ osmo_ss7_asp# *asp, struct osmo_prim_hdrcxx . . $ osmo_prim_hdr# *oph); |