aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stubs.c
blob: aeb7014c669db334e4c3f43b611db29c87189b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <osmo-bts/bts.h>

struct femtol1_hdl;
struct bts_model_set_dyn_pdch_data;

/*
 * Stubs to provide an empty bts model implementation for testing.
 * If we ever want to re-define such a symbol we can make them weak
 * here.
 */
int bts_model_chg_adm_state(struct gsm_bts *bts, struct gsm_abis_mo *mo,
			    void *obj, uint8_t adm_state)
{ return 0; }
int bts_model_init(struct gsm_bts *bts)
{ return 0; }
int bts_model_apply_oml(struct gsm_bts *bts, struct msgb *msg,
			struct tlv_parsed *new_attr, int kind, void *obj)
{ return 0; }

int bts_model_trx_deact_rf(struct gsm_bts_trx *trx)
{ return 0; }
int bts_model_trx_close(struct gsm_bts_trx *trx)
{ return 0; }
int bts_model_check_oml(struct gsm_bts *bts, uint8_t msg_type,
			struct tlv_parsed *old_attr, struct tlv_parsed *new_attr,
			void *obj)
{ return 0; }
int bts_model_opstart(struct gsm_bts *bts, struct gsm_abis_mo *mo,
		      void *obj)
{ return 0; }
int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
{ return 0; }

uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx)
{ return 0; }

int bts_model_oml_estab(struct gsm_bts *bts)
{ return 0; }

int l1if_set_txpower(struct femtol1_hdl *fl1h, float tx_power)
{ return 0; }


int bts_model_adjst_ms_pwr(struct gsm_lchan *lchan)
{ return 0; }

void bts_model_abis_close(struct gsm_bts *bts)
{ }