aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2008-12-29 06:23:49 +0000
committerHolger Freyther <zecke@selfish.org>2008-12-29 06:23:49 +0000
commit3186bf209a6c692a521c92cce9d56b49032f4ed3 (patch)
treed34aacdd3a158b4dd85f5ade92abf27e9ba990ec /include/openbsc/gsm_data.h
parent86f1812105880b5dc3cd9e882d57c0b506769aac (diff)
Add callback for allocated lchannels
Currently it is not possible to know for which tmsi the channel is going to be allocated. The bsc_hack will guess.. in the future it might be forced to ask for the tmsi after the channel has been opened...
Diffstat (limited to 'include/openbsc/gsm_data.h')
-rw-r--r--include/openbsc/gsm_data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h
index 8f21524eb..99634f4c1 100644
--- a/include/openbsc/gsm_data.h
+++ b/include/openbsc/gsm_data.h
@@ -84,6 +84,9 @@ struct gsm_lchan {
/* local end of a call, if any */
struct gsm_call call;
+
+ /* temporary user data, to be removed... and merged into gsm_call */
+ void *user_data;
};
#define BTS_TRX_F_ACTIVATED 0x0001
@@ -146,6 +149,7 @@ struct gsm_network {
struct gsm_subscriber *subscriber;
void (*update_request_accepted)(struct gsm_bts *, u_int32_t);
+ void (*channel_allocated)(struct gsm_lchan *bts, enum gsm_chreq_reason_t);
};
struct gsm_network *gsm_network_init(unsigned int num_bts, u_int16_t country_code,