move ClientSlot_t from fsm to client

this allows to reuse the client slot information in as client for
other rspro_utils methods
This commit is contained in:
Kevin Redon 2018-10-10 00:36:46 +02:00
parent 26a6609dd7
commit c3a9a0eeb7
2 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,9 @@ struct bankd_client {
uint16_t bankd_port;
struct ipa_client_conn *bankd_conn;
struct osmo_fsm_inst *bankd_fi;
/* client id and slot number */
ClientSlot_t *clslot;
};
void ipa_client_conn_send_rspro(struct ipa_client_conn *ipa, RsproPDU_t *rspro);

View File

@ -92,8 +92,7 @@ static void bdc_st_established_onenter(struct osmo_fsm_inst *fi, uint32_t prev_s
RsproPDU_t *pdu;
/* FIXME: Send ClientConnReq */
const ClientSlot_t clslot = { .clientId = 23, .slotNr = 1 };
pdu = rspro_gen_ConnectClientReq(&bc->own_comp_id, &clslot);
pdu = rspro_gen_ConnectClientReq(&bc->own_comp_id, bc->clslot);
ipa_client_conn_send_rspro(bc->bankd_conn, pdu);
}