Replace bankd_client_fsm with rspro_client_fsm
There was a lot of similarity between the bankd_client_fsm (for the
client->bankd RSPRO connection) and the rspro_client_fsm (for the
client->server and the bankd->server RSPRO connections).
With the last few commits introducing the missing features to
rspro_client_fsm, we can completely obsolete bankd_client_fsm and
further simplify the codebase.
Change-Id: Icbe9881a0391fcd0c47e5d930dc764fc0cb1dfbf
diff --git a/src/client.h b/src/client.h
index 80edaa3..96a454f 100644
--- a/src/client.h
+++ b/src/client.h
@@ -9,36 +9,16 @@
#include "slotmap.h"
#include "debug.h"
-/* fsm.c */
-
-enum bankd_conn_fsm_event {
- BDC_E_ESTABLISH, /* instruct BDC to (re)etablish TCP connection to bankd */
- BDC_E_TCP_UP, /* notify BDC that TCP connection is up/connected */
- BDC_E_TCP_DOWN, /* notify BDC that TCP connection is down/disconnected */
- BDC_E_CLIENT_CONN_RES, /* notify BDC that ClientConnectRes has been received */
- BDC_E_RSPRO_TX, /* transmit a RSPRO PDU to the bankd */
-};
-
-extern struct osmo_fsm remsim_client_bankd_fsm;
-
-
/* main.c */
struct bankd_client {
/* connection to the remsim-server (control) */
struct rspro_server_conn srv_conn;
+ /* connection to the remsim-bankd (data) */
+ struct rspro_server_conn bankd_conn;
/* remote component ID */
struct app_comp_id peer_comp_id;
- /* connection to the remsim-bankd */
- char *bankd_host;
- uint16_t bankd_port;
struct bank_slot bankd_slot;
- struct ipa_client_conn *bankd_conn;
- struct osmo_fsm_inst *bankd_fi;
};
-
-int bankd_conn_send_rspro(struct bankd_client *bc, RsproPDU_t *pdu);
-int bankd_read_cb(struct ipa_client_conn *conn, struct msgb *msg);
-int bankd_conn_fsm_alloc(struct bankd_client *bc);