diff options
author | Max <msuraev@sysmocom.de> | 2018-01-26 13:31:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-19 08:43:46 +0000 |
commit | 1187a7719c07476b9926c2fcafa64a6e003550d9 (patch) | |
tree | 971995dfc4292ff302a4d088364d615a120de3a0 /src/pcu_main.cpp | |
parent | 910a387b0eefa22308446eda7604468ab1a157ad (diff) |
Update header includes
Many files include unnecessary headers and don't include headers which
are actually used. Because of that combined with the fact that OsmoPCU
is a mixture of C and C++, it makes it hard to modularize code. Fix
this (using iwyu [1] tool):
* add missing headers
* remove unused headers
[1] https://include-what-you-use.org/
Related: OS#1539
Change-Id: I8c9f488a43b099c72b2d30d3245e7ba50872fc00
Diffstat (limited to 'src/pcu_main.cpp')
-rw-r--r-- | src/pcu_main.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index b7574f96..0c3a4142 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -17,22 +17,34 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <gprs_bssgp_pcu.h> -#include <arpa/inet.h> #include <pcu_l1_if.h> #include <gprs_rlcmac.h> #include <gsm_timer.h> #include <gprs_debug.h> #include <unistd.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <errno.h> #include <getopt.h> #include <signal.h> #include <sched.h> #include <bts.h> +#include <gprs_coding_scheme.h> +#include <osmocom/pcu/pcuif_proto.h> extern "C" { #include "pcu_vty.h" +#include <osmocom/gprs/gprs_bssgp.h> +#include <osmocom/gprs/gprs_ns.h> #include <osmocom/vty/telnet_interface.h> -#include <osmocom/vty/logging.h> +#include <osmocom/vty/command.h> +#include <osmocom/vty/vty.h> #include <osmocom/vty/ports.h> +#include <osmocom/core/rate_ctr.h> +#include <osmocom/core/select.h> +#include <osmocom/core/application.h> +#include <osmocom/core/msgb.h> #include <osmocom/core/stats.h> #include <osmocom/core/gsmtap.h> #include <osmocom/core/gsmtap_util.h> |