summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-10 12:50:31 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-24 16:58:30 +0100
commitc69ee8527c8ec88bdbff820d0a8aa706502516a5 (patch)
tree7ff8998763f0a2bb20333516d8163e1baa8ad54b
parent16606c9007ae97bbb0ca796384381b4decceee91 (diff)
Add empty libcommon-cs
This will gradually soak up code shared by libbsc and libmsc. Change-Id: If34e2bd38a099d0799238337468d56e0305ab8ae
-rw-r--r--openbsc/configure.ac1
-rw-r--r--openbsc/include/openbsc/Makefile.am1
-rw-r--r--openbsc/include/openbsc/common_cs.h1
-rw-r--r--openbsc/src/Makefile.am1
-rw-r--r--openbsc/src/libcommon-cs/Makefile.am20
-rw-r--r--openbsc/src/libcommon-cs/common_cs.c19
-rw-r--r--openbsc/src/libcommon-cs/common_cs_vty.c19
7 files changed, 62 insertions, 0 deletions
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index b18ecc1a1..093d42f79 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -214,6 +214,7 @@ AC_OUTPUT(
src/libcommon/Makefile
src/libfilter/Makefile
src/libiu/Makefile
+ src/libcommon-cs/Makefile
src/osmo-nitb/Makefile
src/osmo-bsc/Makefile
src/osmo-bsc_nat/Makefile
diff --git a/openbsc/include/openbsc/Makefile.am b/openbsc/include/openbsc/Makefile.am
index 5737a4bb1..d9d8e99c8 100644
--- a/openbsc/include/openbsc/Makefile.am
+++ b/openbsc/include/openbsc/Makefile.am
@@ -13,6 +13,7 @@ noinst_HEADERS = \
bss.h \
bts_ipaccess_nanobts_omlattr.h \
chan_alloc.h \
+ common_cs.h \
crc24.h \
ctrl.h \
db.h \
diff --git a/openbsc/include/openbsc/common_cs.h b/openbsc/include/openbsc/common_cs.h
new file mode 100644
index 000000000..6f70f09be
--- /dev/null
+++ b/openbsc/include/openbsc/common_cs.h
@@ -0,0 +1 @@
+#pragma once
diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am
index 272292a1c..cfad7dfea 100644
--- a/openbsc/src/Makefile.am
+++ b/openbsc/src/Makefile.am
@@ -27,6 +27,7 @@ SUBDIRS = \
libmsc \
libtrau \
libfilter \
+ libcommon-cs \
$(NULL)
# Conditional Libraries
diff --git a/openbsc/src/libcommon-cs/Makefile.am b/openbsc/src/libcommon-cs/Makefile.am
new file mode 100644
index 000000000..f3921ba5f
--- /dev/null
+++ b/openbsc/src/libcommon-cs/Makefile.am
@@ -0,0 +1,20 @@
+AM_CPPFLAGS = \
+ $(all_includes) \
+ -I$(top_srcdir)/include \
+ -I$(top_builddir) \
+ $(NULL)
+
+AM_CFLAGS = \
+ -Wall \
+ $(LIBOSMOCORE_CFLAGS) \
+ $(LIBOSMOGSM_CFLAGS) \
+ $(LIBOSMOVTY_CFLAGS) \
+ $(LIBOSMOABIS_CFLAGS) \
+ $(COVERAGE_CFLAGS) \
+ $(NULL)
+
+noinst_LIBRARIES = libcommon-cs.a
+
+libcommon_cs_a_SOURCES = \
+ common_cs.c \
+ common_cs_vty.c
diff --git a/openbsc/src/libcommon-cs/common_cs.c b/openbsc/src/libcommon-cs/common_cs.c
new file mode 100644
index 000000000..99aa0cf76
--- /dev/null
+++ b/openbsc/src/libcommon-cs/common_cs.c
@@ -0,0 +1,19 @@
+/* Code used by both libbsc and libmsc (common_cs means "BSC or MSC").
+ *
+ * (C) 2016 by sysmocom s.m.f.c. <info@sysmocom.de>
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
diff --git a/openbsc/src/libcommon-cs/common_cs_vty.c b/openbsc/src/libcommon-cs/common_cs_vty.c
new file mode 100644
index 000000000..99aa0cf76
--- /dev/null
+++ b/openbsc/src/libcommon-cs/common_cs_vty.c
@@ -0,0 +1,19 @@
+/* Code used by both libbsc and libmsc (common_cs means "BSC or MSC").
+ *
+ * (C) 2016 by sysmocom s.m.f.c. <info@sysmocom.de>
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */