aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-10-05 14:35:32 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-10-05 17:25:23 +0200
commit5c7f2602f257878dc9fa9ce3d2fb26001e1ea351 (patch)
treea3a49e12892e17512fdaac31ec81129ca93de31f /include
parentf181f90af43849d85df84fec00ceee2142239e3f (diff)
Rearrange ctrl interface code
Current organization is totally mess, there's actually no organization at all for lots of commands. Let's organize most commands based on CTRL node where they are applied: global, bts, trx, etc. Specific set of commands such as neighbor-related, rf-related, etc. are left in separate files as subsections inside the same node, so the hierarchy is still clear. Change-Id: I51a9b31780a4a8026aafb2d732369cdc10c8bb70
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/ctrl.h11
-rw-r--r--include/osmocom/bsc/gsm_data.h3
2 files changed, 11 insertions, 3 deletions
diff --git a/include/osmocom/bsc/ctrl.h b/include/osmocom/bsc/ctrl.h
index 04ca2cb5a..af42b3982 100644
--- a/include/osmocom/bsc/ctrl.h
+++ b/include/osmocom/bsc/ctrl.h
@@ -2,9 +2,20 @@
#include <osmocom/ctrl/control_cmd.h>
+struct gsm_network;
+struct gsm_bts;
+struct bsc_msc_data;
+
struct ctrl_handle *bsc_controlif_setup(struct gsm_network *net,
const char *bind_addr, uint16_t port);
+/* Used internally in different ctrl source code files: */
+int bsc_bts_ctrl_cmds_install(void);
+int bsc_bts_trx_ctrl_cmds_install(void);
+void ctrl_generate_bts_location_state_trap(struct gsm_bts *bts, struct bsc_msc_data *msc);
+void osmo_bsc_send_trap(struct ctrl_cmd *cmd, struct bsc_msc_data *msc_data);
+
+
enum bsc_ctrl_node {
CTRL_NODE_MSC = _LAST_CTRL_NODE,
_LAST_CTRL_NODE_BSC
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 52b20a8b9..37d794702 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -998,9 +998,6 @@ void set_ts_e1link(struct gsm_bts_trx_ts *ts, uint8_t e1_nr,
/* generic E1 line operations for all ISDN-based BTS. */
extern struct e1inp_line_ops bts_isdn_e1inp_line_ops;
-/* control interface handling */
-int bsc_base_ctrl_cmds_install(void);
-
bool ts_is_usable(const struct gsm_bts_trx_ts *ts);
int gsm_lchan_type_by_pchan(enum gsm_phys_chan_config pchan);