gsup_server: Add "priv" pointer and make it point to 'struct hlr'
Change-Id: Iada68996b7f4cbdcca92b254ddaf6b88b962e6f1
diff --git a/src/gsup_server.h b/src/gsup_server.h
index e49d283..9c4d483 100644
--- a/src/gsup_server.h
+++ b/src/gsup_server.h
@@ -16,6 +16,9 @@
typedef int (*osmo_gsup_read_cb_t)(struct osmo_gsup_conn *conn, struct msgb *msg);
struct osmo_gsup_server {
+ /* private data of the application/user */
+ void *priv;
+
/* list of osmo_gsup_conn */
struct llist_head clients;
@@ -53,7 +56,8 @@
const char *ip_addr,
uint16_t tcp_port,
osmo_gsup_read_cb_t read_cb,
- struct llist_head *lu_op_lst);
+ struct llist_head *lu_op_lst,
+ void *priv);
void osmo_gsup_server_destroy(struct osmo_gsup_server *gsups);