From b6acfdaa24851e1aa95bfc4611709737aaafa5f1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 17 Oct 2013 19:41:11 +0200 Subject: 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. --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index f0fb7bd6..012f8a9f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,7 +42,8 @@ libgprs_la_SOURCES = \ bitvector.cpp \ pcu_l1_if.cpp \ pcu_vty.c \ - tbf.cpp + tbf.cpp \ + bts.cpp if ENABLE_SYSMOBTS libgprs_la_SOURCES += \ -- cgit v1.2.3