From a52c89800c9826634bcae3a635b71feb905b3641 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 30 Aug 2017 17:42:49 +0200 Subject: SDR: Split SDR config from main_mobile.c to sdr_config.c --- src/nmt/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/nmt') diff --git a/src/nmt/main.c b/src/nmt/main.c index e0fbadb..1302124 100644 --- a/src/nmt/main.c +++ b/src/nmt/main.c @@ -59,7 +59,7 @@ int send_callerid = 0; void print_help(const char *arg0) { - print_help_common(arg0, "[-N 900] -Y | list [-I 1] [-0 1] "); + main_mobile_print_help(arg0, "[-N 900] -Y | list [-I 1] [-0 1] "); /* - - */ printf(" -N --nmt-system 450/900\n"); printf(" Give NMT type as first paramer. (default = '%d')\n", nmt_system); @@ -94,7 +94,7 @@ void print_help(const char *arg0) printf(" If set, the caller ID is sent while ringing the phone. (default = '%d')\n", send_callerid); printf("\nstation-id: Give 7 digits of station-id, you don't need to enter it\n"); printf(" for every start of this program.\n"); - print_hotkeys_common(); + main_mobile_print_hotkeys(); } static int handle_options(int argc, char **argv) @@ -116,7 +116,7 @@ static int handle_options(int argc, char **argv) {0, 0, 0, 0} }; - set_options_common("N:T:P:Y:A:C:0:S:I:", long_options_special); + main_mobile_set_options("N:T:P:Y:A:C:0:S:I:", long_options_special); while (1) { int option_index = 0, c, rc; @@ -224,7 +224,7 @@ error_ta: skip_args += 2; break; default: - opt_switch_common(c, argv[0], &skip_args); + main_mobile_opt_switch(c, argv[0], &skip_args); } first_option = 0; } @@ -290,6 +290,8 @@ int main(int argc, char *argv[]) init_nmt_tones(); init_announcement(); + main_mobile_init(); + skip_args = handle_options(argc, argv); argc -= skip_args; argv += skip_args; -- cgit v1.2.3