path: root/src/bts.h
diff options
authorMax <msuraev@sysmocom.de>2017-09-28 15:56:05 +0200
committerMax <msuraev@sysmocom.de>2018-01-26 12:55:29 +0100
commite9fe0e3d0621682d18d56f89f808c819db8bb5f6 (patch)
tree34cbeafb542209a18cf62a56e74b5beab94dfe93 /src/bts.h
parenta296118e6d2b1e42b5e51e47467881598f9101f2 (diff)
Simplify TS alloc: adjust allocator signatures
* drop unused parameters (from both functions and structs) * document used parameters and return values * tighten types used for parameters * use consistent formatting Tests are adjusted accordingly but test results are left untouched to avoid regressions. Change-Id: I39d81ab64ff790b9c4c2d0312a574485cd83e755 Related: OS#2282
Diffstat (limited to 'src/bts.h')
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bts.h b/src/bts.h
index b1724c9..8d3a3cc 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -203,11 +203,9 @@ struct gprs_rlcmac_bts {
struct gsmtap_inst *gsmtap;
uint32_t gsmtap_categ_mask;
struct gprs_rlcmac_trx trx[8];
- int (*alloc_algorithm)(struct gprs_rlcmac_bts *bts,
- struct GprsMs *ms,
- struct gprs_rlcmac_tbf *tbf, uint32_t cust, uint8_t single,
- int use_tbf);
- uint32_t alloc_algorithm_curst; /* options to customize algorithm */
+ int (*alloc_algorithm)(struct gprs_rlcmac_bts *bts, struct GprsMs *ms, struct gprs_rlcmac_tbf *tbf,
+ bool single, int8_t use_tbf);
uint8_t force_two_phase;
uint8_t alpha, gamma;
uint8_t egprs_enabled;