Move gprs_gb_parse.[c,h] to tests/sgsn/

That big file is really only used by tests/sgsn/sgsn_test nowadays, so
let's keep it out of osmo-sgsn app code base.

Change-Id: Ia5a639832f52b2f015a2800bd0d94a28d7bc689b
This commit is contained in:
Pau Espin 2022-12-22 19:49:37 +01:00
parent e7ccfdb4aa
commit 749ca7c850
7 changed files with 10 additions and 7 deletions

4
debian/copyright vendored
View File

@ -33,7 +33,6 @@ Files: .gitignore
include/osmocom/sgsn/crc24.h
include/osmocom/sgsn/debug.h
include/osmocom/sgsn/gb_proxy.h
include/osmocom/sgsn/gprs_gb_parse.h
include/osmocom/sgsn/gprs_gmm.h
include/osmocom/sgsn/gprs_llc.h
include/osmocom/sgsn/gprs_sgsn.h
@ -53,6 +52,7 @@ Files: .gitignore
tests/gprs/gprs_test.ok
tests/gtphub/Makefile.am
tests/gtphub/gtphub_test.ok
tests/sgsn/gprs_gb_parse.h
tests/sgsn/Makefile.am
tests/sgsn/sgsn_test.ok
tests/slhc/Makefile.am
@ -78,7 +78,6 @@ Files: include/osmocom/sgsn/a_reset.h
include/osmocom/sgsn/signal.h
src/gprs/gprs_llc_parse.c
src/gprs/crc24.c
src/gprs/gprs_gb_parse.c
src/gprs/gprs_utils.c
src/gprs/sgsn_ares.c
src/gtphub/gtphub.c
@ -103,6 +102,7 @@ Files: include/osmocom/sgsn/a_reset.h
src/sgsn/sgsn_main.c
src/sgsn/sgsn_vty.c
tests/gtphub/gtphub_test.c
tests/sgsn/gprs_gb_parse.c
tests/sgsn/sgsn_test.c
tests/slhc/slhc_test.c
tests/sndcp_xid/sndcp_xid_test.c

View File

@ -3,7 +3,6 @@ noinst_HEADERS = \
crc24.h \
debug.h \
gprs_gb.h \
gprs_gb_parse.h \
gprs_gmm.h \
gprs_gmm_fsm.h \
gprs_gmm_attach.h \

View File

@ -29,7 +29,6 @@ endif
noinst_LTLIBRARIES = libcommon.la
libcommon_la_SOURCES = \
gprs_gb_parse.c \
gprs_llc_parse.c \
crc24.c \
gprs_utils.c \

View File

@ -29,8 +29,13 @@ check_PROGRAMS = \
sgsn_test \
$(NULL)
noinst_HEADERS = \
gprs_gb_parse.h \
$(NULL)
sgsn_test_SOURCES = \
sgsn_test.c \
gprs_gb_parse.c \
$(NULL)
sgsn_test_LDFLAGS = \
@ -66,7 +71,6 @@ sgsn_test_LDADD = \
$(top_builddir)/src/sgsn/sgsn_rim.o \
$(top_builddir)/src/gprs/gprs_utils.o \
$(top_builddir)/src/gprs/gprs_llc_parse.o \
$(top_builddir)/src/gprs/gprs_gb_parse.o \
$(top_builddir)/src/gprs/crc24.o \
$(top_builddir)/src/gprs/sgsn_ares.o \
$(LIBOSMOABIS_LIBS) \

View File

@ -21,7 +21,7 @@
#include <osmocom/gsm/gsm48.h>
#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
#include <osmocom/sgsn/gprs_gb_parse.h>
#include "gprs_gb_parse.h"
#include <osmocom/sgsn/gprs_utils.h>

View File

@ -27,7 +27,6 @@
#include <osmocom/gsm/gsup.h>
#include <osmocom/gsupclient/gsup_client.h>
#include <osmocom/sgsn/gprs_utils.h>
#include <osmocom/sgsn/gprs_gb_parse.h>
#include <osmocom/sgsn/gprs_gmm_fsm.h>
#include <osmocom/gprs/gprs_bssgp.h>
@ -42,6 +41,8 @@
#include <stdio.h>
#include "gprs_gb_parse.h"
void *tall_sgsn_ctx;
static struct sgsn_instance sgsn_inst = {
.config_file = "osmo_sgsn.cfg",