aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-09 12:34:18 +0100
committerHarald Welte <laforge@gnumonks.org>2016-01-22 09:09:09 +0100
commit611ef23700619f0e8e3a7c0b87f4568c1c09a6c0 (patch)
tree56caf4c258a6cc155a3c08dd2a17dd3c40cabe80 /include
parenta0192b859ba9230c84381cbf065816760da62ba7 (diff)
merge bts-specific main function into common/main.c:bts_main()
This removes a lot of copy+paste duplication between different BTS models.
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/bts.h2
-rw-r--r--include/osmo-bts/bts_model.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h
index 0b91ccbc..9e211864 100644
--- a/include/osmo-bts/bts.h
+++ b/include/osmo-bts/bts.h
@@ -43,5 +43,7 @@ int trx_ms_pwr_ctrl_is_osmo(struct gsm_bts_trx *trx);
struct gsm_time *get_time(struct gsm_bts *bts);
+int bts_main(int argc, char **argv);
+
#endif /* _BTS_H */
diff --git a/include/osmo-bts/bts_model.h b/include/osmo-bts/bts_model.h
index 99b957df..41b5e93b 100644
--- a/include/osmo-bts/bts_model.h
+++ b/include/osmo-bts/bts_model.h
@@ -44,4 +44,7 @@ void bts_model_abis_close(struct gsm_bts *bts);
int bts_model_ctrl_cmds_install(struct gsm_bts *bts);
+int bts_model_handle_options(int argc, char **argv);
+void bts_model_print_help();
+
#endif