aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-28 15:47:12 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-28 16:12:39 +0800
commit2412a07965ace5fc425b401438d21ff86ceeb2df (patch)
tree43f862deafccf9500b8f81621862a708b144f6c7 /openbsc/include/openbsc/gsm_data.h
parent94d625bfa09be748aa1a157da8320bd75761d431 (diff)
bsc_api: Allocate the subscriber_connection dynamically
This is a big change to the way we use the subscriber connection. From now on it is is dynamically allocated and we will slowly move from a 1:1 lchan to conn to having more than one lchan per connection. This is the first commit, the subscr_con* methods will move to gsm_data once the use_count is removed from the connection, the freeing of the connection will also change.
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r--openbsc/include/openbsc/gsm_data.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 2e41e8ba5..b1091cdb2 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -255,7 +255,6 @@ struct gsm_subscriber_connection {
int silent_call;
/* back pointers */
- int allocated;
struct gsm_lchan *lchan;
struct gsm_bts *bts;
};
@@ -316,7 +315,7 @@ struct gsm_lchan {
struct rtp_socket *rtp_socket;
} abis_ip;
- struct gsm_subscriber_connection conn;
+ struct gsm_subscriber_connection *conn;
};
struct gsm_e1_subslot {
@@ -822,4 +821,7 @@ int gsm_btsmodel_set_feature(struct gsm_bts_model *model, enum gsm_bts_features
int gsm_bts_has_feature(struct gsm_bts *bts, enum gsm_bts_features feat);
int gsm_bts_model_register(struct gsm_bts_model *model);
+struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan);
+void subscr_con_free(struct gsm_subscriber_connection *conn);
+
#endif