rspro_server_conn: Add handle_rx() call-back
This call-back receives all already-decoded RSPRO PDUs from the server.
Change-Id: I5f410aa6071c9a987c2811f22fb2f3ff018b3cc1
diff --git a/src/client.h b/src/client.h
index d85e647..6918560 100644
--- a/src/client.h
+++ b/src/client.h
@@ -2,6 +2,7 @@
#include <osmocom/core/fsm.h>
#include <osmocom/abis/ipa.h>
+#include <osmocom/rspro/RsproPDU.h>
#include "rspro_util.h"
#include "debug.h"
@@ -23,11 +24,14 @@
SRVC_E_CLIENT_CONN_RES,
};
+struct rspro_server_conn;
+
/* representing a client-side connection to a RSPRO server */
struct rspro_server_conn {
/* state */
struct ipa_client_conn *conn;
struct osmo_fsm_inst *fi;
+ int (*handle_rx)(struct rspro_server_conn *conn, RsproPDU_t *pdu);
/* our own component ID */
struct app_comp_id own_comp_id;