diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-05-18 11:35:35 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2020-05-20 11:07:07 +0000 |
commit | 2ae8337669528b8293f26777986940de1b1770d7 (patch) | |
tree | e703c735e7c85dbde4b215c21fa75f948cd0dd5c /src/tbf.h | |
parent | c10cb81593230269cbc3f23244d8e3fb43b1f465 (diff) |
Get rid of class GprsCodingScheme
We have same kind of object splitted into two layers, in coding_scheme
and gprs_coding_scheme. Let's merge them together and get rid of the
class, which is not really useful because it's only a set of functions
operating on one enum value.
This change also fixes gcc 10.1.0 error about memseting a complex type
in rlc.h init().
Change-Id: Ie9ce2144ba9e8dbba9704d4e0000a2929e3e41df
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -24,14 +24,16 @@ #include "rlc.h" #include "cxx_linuxlist.h" #include <gprs_debug.h> -#include <gprs_coding_scheme.h> #include <gsm_timer.h> #include <stdint.h> + extern "C" { #include <osmocom/core/utils.h> - #include <osmocom/core/linuxlist.h> - #include <osmocom/core/logging.h> - #include <osmocom/core/timer.h> +#include <osmocom/core/linuxlist.h> +#include <osmocom/core/logging.h> +#include <osmocom/core/timer.h> + +#include "coding_scheme.h" } struct bssgp_bvc_ctx; @@ -245,7 +247,7 @@ struct gprs_rlcmac_tbf { void set_ta(uint8_t); uint8_t ms_class() const; void set_ms_class(uint8_t); - GprsCodingScheme current_cs() const; + enum CodingScheme current_cs() const; size_t llc_queue_size() const; time_t created_ts() const; |