|
libosmo-sigtran 2.2.1
Osmocom SIGTRAN library
|
#include <inttypes.h>#include <osmocom/core/fsm.h>#include <osmocom/core/prim.h>#include <osmocom/core/linuxlist.h>#include <osmocom/sigtran/sccp_sap.h>Go to the source code of this file.
Data Structures | |
| struct | osmo_sccp_user |
Macros | |
| #define | _LOGPSCU(scu, subsys, level, fmt, args ...) |
| #define | LOGPSCU(scu, level, fmt, args ...) |
Functions | |
| struct osmo_sccp_user * | sccp_user_alloc (struct osmo_sccp_instance *inst, const char *name, osmo_prim_cb prim_cb, uint16_t ssn, uint32_t pc) |
| void | sccp_user_free (struct osmo_sccp_user *scu) |
| int | sccp_user_prim_up (struct osmo_sccp_user *scut, struct osmo_scu_prim *prim) |
| Send a SCCP User SAP Primitive up to the User. | |
| #define _LOGPSCU | ( | scu, | |
| subsys, | |||
| level, | |||
| fmt, | |||
| args ... ) |
| #define LOGPSCU | ( | scu, | |
| level, | |||
| fmt, | |||
| args ... ) |
Referenced by osmo_sccp_tx_conn_resp_msg(), osmo_sccp_tx_data(), osmo_sccp_tx_disconn_data(), osmo_sccp_user_sap_down_nofree(), osmo_sccp_user_unbind(), sccp_sclc_user_sap_down_nofree(), sccp_user_prim_up(), scmg_prim_cb(), and scmg_rx().
| struct osmo_sccp_user * sccp_user_alloc | ( | struct osmo_sccp_instance * | inst, |
| const char * | name, | ||
| osmo_prim_cb | prim_cb, | ||
| uint16_t | ssn, | ||
| uint32_t | pc ) |
References osmo_sccp_user::inst, osmo_sccp_user::list, osmo_sccp_user::name, osmo_sccp_user::pc, pc, osmo_sccp_user::prim_cb, osmo_sccp_user::ssn, ssn, and osmo_sccp_instance::users.
Referenced by sccp_user_bind_pc().
| void sccp_user_free | ( | struct osmo_sccp_user * | scu | ) |
References osmo_sccp_user::list, and sccp_user_flush_connections().
Referenced by osmo_sccp_user_unbind().
| int sccp_user_prim_up | ( | struct osmo_sccp_user * | scu, |
| struct osmo_scu_prim * | prim ) |
Send a SCCP User SAP Primitive up to the User.
| [in] | scu | SCCP User to whom to send the primitive |
| [in] | prim | Primitive to send to the user |
Ownership of prim->oph->msg is passed to the user of the registered callback
References LOGPSCU, osmo_scu_prim::oph, osmo_scu_prim_name(), and osmo_sccp_user::prim_cb.
Referenced by sccp_conn_scu_gen_encode_and_send(), sccp_lbcs_local_bcast_pcstate(), sccp_lbcs_local_bcast_state(), sclc_rx_cldr(), and sclc_rx_cldt().