move 'struct rspro_server_conn' to client.h
Change-Id: Iab9183de086e76a214c23b2af340253a0428e445
This commit is contained in:
parent
a4e0a2396b
commit
fc0ba94dd6
17
src/client.h
17
src/client.h
|
@ -14,6 +14,8 @@ enum bankd_conn_fsm_event {
|
|||
BDC_E_CLIENT_CONN_RES,
|
||||
};
|
||||
|
||||
extern struct osmo_fsm remsim_client_bankd_fsm;
|
||||
|
||||
|
||||
enum server_conn_fsm_event {
|
||||
SRVC_E_TCP_UP,
|
||||
|
@ -21,7 +23,20 @@ enum server_conn_fsm_event {
|
|||
SRVC_E_CLIENT_CONN_RES,
|
||||
};
|
||||
|
||||
extern struct osmo_fsm remsim_client_bankd_fsm;
|
||||
/* representing a client-side connection to a RSPRO server */
|
||||
struct rspro_server_conn {
|
||||
/* state */
|
||||
struct ipa_client_conn *conn;
|
||||
struct osmo_fsm_inst *fi;
|
||||
|
||||
/* our own component ID */
|
||||
struct app_comp_id own_comp_id;
|
||||
|
||||
/* configuration */
|
||||
char *server_host;
|
||||
uint16_t server_port;
|
||||
};
|
||||
|
||||
extern struct osmo_fsm remsim_client_server_fsm;
|
||||
|
||||
/* main.c */
|
||||
|
|
|
@ -240,20 +240,6 @@ static const struct value_string server_conn_fsm_event_names[] = {
|
|||
{ 0, NULL }
|
||||
};
|
||||
|
||||
/* representing a client-side connection to a RSPRO server */
|
||||
struct rspro_server_conn {
|
||||
/* state */
|
||||
struct ipa_client_conn *conn;
|
||||
struct osmo_fsm_inst *fi;
|
||||
|
||||
/* our own component ID */
|
||||
struct app_comp_id own_comp_id;
|
||||
|
||||
/* configuration */
|
||||
char *server_host;
|
||||
uint16_t server_port;
|
||||
};
|
||||
|
||||
static void srvc_updown_cb(struct ipa_client_conn *conn, int up)
|
||||
{
|
||||
struct rspro_server_conn *srvc = conn->data;
|
||||
|
|
Loading…
Reference in New Issue