diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-07-22 17:55:42 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-09-11 12:52:23 +0200 |
commit | 6fc4a98fc5250d009a65d5fa079904400a3ded3d (patch) | |
tree | 0ea250b3d72f6336ed77e84ef1d7a9839142b479 /openbsc/include/openbsc/control_if.h | |
parent | f3b31eb34978d35011ff46edaf40c1a151604197 (diff) |
libctrl: Change controlif_setup so it returns the ctrl handle
nat: Catch up with controlif_setup API change
We now save a control handle reference in the nat
osmo-bsc: Catch up with controlif_setup API change
We now save a control handle reference in the gsm network
Diffstat (limited to 'openbsc/include/openbsc/control_if.h')
-rw-r--r-- | openbsc/include/openbsc/control_if.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/control_if.h b/openbsc/include/openbsc/control_if.h index 96fbf6bff..6afc86d76 100644 --- a/openbsc/include/openbsc/control_if.h +++ b/openbsc/include/openbsc/control_if.h @@ -5,9 +5,17 @@ #include <openbsc/control_cmd.h> #include <openbsc/gsm_data.h> +struct ctrl_handle { + struct osmo_fd listen_fd; + struct gsm_network *gsmnet; + + /* List of control connections */ + struct llist_head ccon_list; +}; + int ctrl_cmd_send(struct osmo_wqueue *queue, struct ctrl_cmd *cmd); int ctrl_cmd_handle(struct ctrl_cmd *cmd, void *data); -int controlif_setup(struct gsm_network *gsmnet, uint16_t port); +struct ctrl_handle *controlif_setup(struct gsm_network *gsmnet, uint16_t port); #endif /* _CONTROL_IF_H */ |