pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/30975 )


Change subject: layer23: Move settings.{c,h} under common/
......................................................................

layer23: Move settings.{c,h} under common/

Some of those can be reused by other apps (like modem).

Change-Id: I0a741b2384195d512fdc49eda6762241f385b1f1
---
M src/host/layer23/include/osmocom/bb/common/Makefile.am
M src/host/layer23/include/osmocom/bb/common/ms.h
R src/host/layer23/include/osmocom/bb/common/settings.h
M src/host/layer23/include/osmocom/bb/mobile/Makefile.am
M src/host/layer23/src/common/Makefile.am
R src/host/layer23/src/common/settings.c
M src/host/layer23/src/mobile/Makefile.am
M src/host/layer23/src/mobile/gsm322.c
M src/host/layer23/src/mobile/gsm48_rr.c
M src/host/layer23/src/mobile/mnccms.c
10 files changed, 8 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/75/30975/1

diff --git a/src/host/layer23/include/osmocom/bb/common/Makefile.am 
b/src/host/layer23/include/osmocom/bb/common/Makefile.am
index f09353b..270f079 100644
--- a/src/host/layer23/include/osmocom/bb/common/Makefile.am
+++ b/src/host/layer23/include/osmocom/bb/common/Makefile.am
@@ -12,6 +12,7 @@
        sap_proto.h \
        sap_fsm.h \
        sap_interface.h \
+       settings.h \
        sim.h \
        subscriber.h \
        support.h \
diff --git a/src/host/layer23/include/osmocom/bb/common/ms.h 
b/src/host/layer23/include/osmocom/bb/common/ms.h
index db6b276..9fd4c7a 100644
--- a/src/host/layer23/include/osmocom/bb/common/ms.h
+++ b/src/host/layer23/include/osmocom/bb/common/ms.h
@@ -5,9 +5,8 @@
 #include <osmocom/gsm/gsm_utils.h>
 #include <osmocom/core/write_queue.h>

-/* FIXME no 'mobile' specific stuff should be here */
-#include <osmocom/bb/mobile/settings.h>
 #include <osmocom/gsm/lapdm.h>
+#include <osmocom/bb/common/settings.h>
 #include <osmocom/bb/common/subscriber.h>
 #include <osmocom/bb/common/support.h>
 #include <osmocom/bb/common/sap_interface.h>
diff --git a/src/host/layer23/include/osmocom/bb/mobile/settings.h 
b/src/host/layer23/include/osmocom/bb/common/settings.h
similarity index 100%
rename from src/host/layer23/include/osmocom/bb/mobile/settings.h
rename to src/host/layer23/include/osmocom/bb/common/settings.h
diff --git a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am 
b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am
index 6d9950b..14694bb 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am
+++ b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am
@@ -1,4 +1,4 @@
 noinst_HEADERS = gsm322.h gsm480_ss.h gsm411_sms.h gsm48_cc.h gsm48_mm.h \
-                gsm48_rr.h mncc.h settings.h \
+                gsm48_rr.h mncc.h \
                 transaction.h vty.h mncc_sock.h mncc_ms.h primitives.h \
                 app_mobile.h voice.h gapk_io.h
diff --git a/src/host/layer23/src/common/Makefile.am 
b/src/host/layer23/src/common/Makefile.am
index 4dfa1f3..9abc802 100644
--- a/src/host/layer23/src/common/Makefile.am
+++ b/src/host/layer23/src/common/Makefile.am
@@ -23,6 +23,7 @@
        sap_fsm.c \
        sap_proto.c \
        sap_interface.c \
+       settings.c \
        sim.c \
        subscriber.c \
        support.c \
diff --git a/src/host/layer23/src/mobile/settings.c 
b/src/host/layer23/src/common/settings.c
similarity index 98%
rename from src/host/layer23/src/mobile/settings.c
rename to src/host/layer23/src/common/settings.c
index b6e251b..0d56f91 100644
--- a/src/host/layer23/src/mobile/settings.c
+++ b/src/host/layer23/src/common/settings.c
@@ -21,7 +21,7 @@
 #include <osmocom/core/talloc.h>

 #include <osmocom/bb/mobile/app_mobile.h>
-#include <osmocom/bb/mobile/settings.h>
+#include <osmocom/bb/common/settings.h>
 #include <osmocom/bb/common/utils.h>
 #include <osmocom/bb/common/logging.h>
 #include <osmocom/bb/common/osmocom_data.h>
diff --git a/src/host/layer23/src/mobile/Makefile.am 
b/src/host/layer23/src/mobile/Makefile.am
index dedee5f..b87063b 100644
--- a/src/host/layer23/src/mobile/Makefile.am
+++ b/src/host/layer23/src/mobile/Makefile.am
@@ -27,7 +27,6 @@
        mnccms.c \
        mncc_sock.c \
        primitives.c \
-       settings.c \
        transaction.c \
        vty_interface.c \
        voice.c \
diff --git a/src/host/layer23/src/mobile/gsm322.c 
b/src/host/layer23/src/mobile/gsm322.c
index 4b73594..df26e82 100644
--- a/src/host/layer23/src/mobile/gsm322.c
+++ b/src/host/layer23/src/mobile/gsm322.c
@@ -35,11 +35,11 @@
 #include <osmocom/bb/common/ms.h>
 #include <osmocom/bb/common/networks.h>
 #include <osmocom/bb/common/utils.h>
+#include <osmocom/bb/common/settings.h>
 #include <osmocom/bb/mobile/vty.h>
 #include <osmocom/bb/mobile/app_mobile.h>
 #include <osmocom/bb/mobile/gsm322.h>
 #include <osmocom/bb/mobile/gsm48_mm.h>
-#include <osmocom/bb/mobile/settings.h>

 #include <l1ctl_proto.h>

diff --git a/src/host/layer23/src/mobile/gsm48_rr.c 
b/src/host/layer23/src/mobile/gsm48_rr.c
index 87a0dcd..5d5e003 100644
--- a/src/host/layer23/src/mobile/gsm48_rr.c
+++ b/src/host/layer23/src/mobile/gsm48_rr.c
@@ -76,11 +76,11 @@
 #include <osmocom/bb/common/networks.h>
 #include <osmocom/bb/common/l1ctl.h>
 #include <osmocom/bb/common/utils.h>
+#include <osmocom/bb/common/settings.h>

 #include <osmocom/bb/mobile/gapk_io.h>
 #include <osmocom/bb/mobile/vty.h>
 #include <osmocom/bb/mobile/gsm48_rr.h>
-#include <osmocom/bb/mobile/settings.h>

 #include <l1ctl_proto.h>

diff --git a/src/host/layer23/src/mobile/mnccms.c 
b/src/host/layer23/src/mobile/mnccms.c
index 16cabc1..bfc95e4 100644
--- a/src/host/layer23/src/mobile/mnccms.c
+++ b/src/host/layer23/src/mobile/mnccms.c
@@ -26,10 +26,10 @@
 #include <osmocom/bb/common/logging.h>
 #include <osmocom/bb/common/osmocom_data.h>
 #include <osmocom/bb/common/ms.h>
+#include <osmocom/bb/common/settings.h>
 #include <osmocom/bb/mobile/mncc.h>
 #include <osmocom/bb/mobile/mncc_ms.h>
 #include <osmocom/bb/mobile/vty.h>
-#include <osmocom/bb/mobile/settings.h>

 static uint32_t new_callref = 1;
 static LLIST_HEAD(call_list);

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30975
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I0a741b2384195d512fdc49eda6762241f385b1f1
Gerrit-Change-Number: 30975
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to