diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-17 19:41:11 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:20:45 +0100 |
commit | b6acfdaa24851e1aa95bfc4611709737aaafa5f1 (patch) | |
tree | 77ccb6c9ba4d387381fd82e3768189a6e7a334a7 /src/gprs_rlcmac.h | |
parent | 67ed34eedb59320095396ff2f65f360c046d88c5 (diff) |
bts: Introduce a singleton for the BTS and use it in the code
Compared to the previous code there will be a branch to get the
global pointer so the code will be slightly slower than the previous
version but it allows us to start creating objects but still use
the code from C. It is best approach I have found so far.
One downside of C++ is that by default talloc will not be used
(unless we override the new operator to use talloc. Right now
we need to memset the C data structure by hand. The benefit of
enforcing a better structure should is more important though.
Diffstat (limited to 'src/gprs_rlcmac.h')
-rw-r--r-- | src/gprs_rlcmac.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h index 2bc88cb1..4b9119b0 100644 --- a/src/gprs_rlcmac.h +++ b/src/gprs_rlcmac.h @@ -43,8 +43,7 @@ extern "C" { struct gprs_rlcmac_tbf; - -extern struct gprs_rlcmac_bts *gprs_rlcmac_bts; +struct gprs_rlcmac_bts; #ifdef __cplusplus /* |