26 lines
843 B
C
26 lines
843 B
C
/* GSM 08.08 like API for OpenBSC */
|
|
|
|
#ifndef OPENBSC_BSC_API_H
|
|
#define OPENBSC_BSC_API_H
|
|
|
|
#include "gsm_data.h"
|
|
|
|
struct bsc_api {
|
|
void (*sapi_n_reject)(struct gsm_subscriber_connection *conn, int dlci);
|
|
void (*cipher_mode_compl)(struct gsm_subscriber_connection *conn,
|
|
struct msgb *msg, uint16_t ind);
|
|
void (*compl_l3)(struct gsm_subscriber_connection *conn,
|
|
struct msgb *msg, uint16_t chosen_channel);
|
|
void (*ass_compl)(struct gsm_subscriber_connection *conn,
|
|
uint16_t rr_cause);
|
|
void (*ass_fail)(struct gsm_subscriber_connection *conn,
|
|
uint16_t rr_cause);
|
|
void (*clear_request)(struct gsm_subscriber_connection *conn,
|
|
uint32_t cause);
|
|
void (*clear_compl)(struct gsm_subscriber_connection *conn);
|
|
};
|
|
|
|
int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg, int link_id);
|
|
|
|
#endif
|