From c78e74e3d022400c66da05015e716ccb7fa18a63 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 21 Aug 2014 14:34:32 +0200 Subject: libctrl: remove 'struct gsm_network' references libctrl doesn't need any knowledge about the type of the user-private data that it gets passed upon setup time and includes on callbacks. --- include/osmocom/ctrl/control_if.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/osmocom/ctrl/control_if.h b/include/osmocom/ctrl/control_if.h index 76f825e5..318e181f 100644 --- a/include/osmocom/ctrl/control_if.h +++ b/include/osmocom/ctrl/control_if.h @@ -4,14 +4,11 @@ #include #include -/* FIXME: this must go */ -struct gsm_network; - typedef int (*ctrl_cmd_handler)(struct ctrl_cmd *, void *); struct ctrl_handle { struct osmo_fd listen_fd; - struct gsm_network *gsmnet; + void *data; ctrl_cmd_handler handler; @@ -21,7 +18,7 @@ struct ctrl_handle { int ctrl_cmd_send(struct osmo_wqueue *queue, struct ctrl_cmd *cmd); -struct ctrl_handle *controlif_setup(struct gsm_network *, uint16_t port, +struct ctrl_handle *controlif_setup(void *data, uint16_t port, ctrl_cmd_handler handler); int bsc_ctrl_cmd_handle(struct ctrl_cmd *cmd, void *data); -- cgit v1.2.3