Lines Matching full:sh

39 static int cmd_tbs_authorize(const struct shell *sh, size_t argc, char *argv[])  in cmd_tbs_authorize()  argument
48 shell_print(sh, "Connection with addr %s authorized", addr); in cmd_tbs_authorize()
63 static int cmd_tbs_accept(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_accept() argument
70 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_accept()
76 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_accept()
83 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_accept()
85 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_accept()
92 static int cmd_tbs_terminate(const struct shell *sh, size_t argc, in cmd_tbs_terminate() argument
100 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_terminate()
106 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_terminate()
113 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_terminate()
115 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_terminate()
122 static int cmd_tbs_hold(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_hold() argument
129 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_hold()
135 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_hold()
142 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_hold()
144 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_hold()
151 static int cmd_tbs_retrieve(const struct shell *sh, size_t argc, in cmd_tbs_retrieve() argument
159 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_retrieve()
165 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_retrieve()
172 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_retrieve()
174 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_retrieve()
181 static int cmd_tbs_originate(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_originate() argument
190 shell_error(sh, "Could not parse service_index: %d", in cmd_tbs_originate()
197 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_originate()
209 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_originate()
211 shell_print(sh, "TBS call_index %u originated", call_index); in cmd_tbs_originate()
217 static int cmd_tbs_join(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_join() argument
226 shell_error(sh, "Could not parse call_index: %d", in cmd_tbs_join()
233 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_join()
243 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_join()
245 shell_print(sh, "TBS join succeeded"); in cmd_tbs_join()
251 static int cmd_tbs_answer(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_answer() argument
258 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_answer()
264 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_answer()
271 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_answer()
273 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_answer()
280 static int cmd_tbs_remote_hold(const struct shell *sh, size_t argc, in cmd_tbs_remote_hold() argument
288 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_hold()
294 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_hold()
301 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_hold()
303 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_remote_hold()
310 static int cmd_tbs_remote_retrieve(const struct shell *sh, size_t argc, in cmd_tbs_remote_retrieve() argument
318 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_retrieve()
324 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_retrieve()
331 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_retrieve()
333 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_remote_retrieve()
340 static int cmd_tbs_remote_terminate(const struct shell *sh, size_t argc, in cmd_tbs_remote_terminate() argument
348 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_terminate()
354 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_terminate()
361 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_terminate()
363 shell_print(sh, "TBS succeeded for call_index: %ld", in cmd_tbs_remote_terminate()
370 static int cmd_tbs_incoming(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_incoming() argument
381 shell_error(sh, in cmd_tbs_incoming()
389 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_incoming()
404 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_incoming()
406 shell_print(sh, "TBS succeeded"); in cmd_tbs_incoming()
412 static int cmd_tbs_set_bearer_provider_name(const struct shell *sh, size_t argc, in cmd_tbs_set_bearer_provider_name() argument
424 shell_error(sh, in cmd_tbs_set_bearer_provider_name()
432 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_set_bearer_provider_name()
445 shell_print(sh, "Could not set provider name: %d", result); in cmd_tbs_set_bearer_provider_name()
451 static int cmd_tbs_set_bearer_technology(const struct shell *sh, size_t argc, in cmd_tbs_set_bearer_technology() argument
464 shell_error(sh, in cmd_tbs_set_bearer_technology()
472 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_set_bearer_technology()
484 shell_error(sh, "Could not parse technology: %d", result); in cmd_tbs_set_bearer_technology()
490 shell_error(sh, "Invalid technology: %lu", technology); in cmd_tbs_set_bearer_technology()
498 shell_print(sh, "Could not set technology: %d", result); in cmd_tbs_set_bearer_technology()
504 static int cmd_tbs_set_bearer_signal_strength(const struct shell *sh, in cmd_tbs_set_bearer_signal_strength() argument
517 shell_error(sh, in cmd_tbs_set_bearer_signal_strength()
525 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_set_bearer_signal_strength()
537 shell_error(sh, "Could not parse signal_strength: %d", result); in cmd_tbs_set_bearer_signal_strength()
543 shell_error(sh, "Invalid signal_strength: %lu", in cmd_tbs_set_bearer_signal_strength()
552 shell_print(sh, "Could not set signal strength: %d", result); in cmd_tbs_set_bearer_signal_strength()
558 static int cmd_tbs_set_status_flags(const struct shell *sh, size_t argc, in cmd_tbs_set_status_flags() argument
571 shell_error(sh, in cmd_tbs_set_status_flags()
579 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_set_status_flags()
591 shell_error(sh, "Could not parse status_flags: %d", result); in cmd_tbs_set_status_flags()
597 shell_error(sh, "Invalid status_flags: %lu", status_flags); in cmd_tbs_set_status_flags()
605 shell_print(sh, "Could not set status flags: %d", result); in cmd_tbs_set_status_flags()
611 static int cmd_tbs_set_uri_scheme_list(const struct shell *sh, size_t argc, in cmd_tbs_set_uri_scheme_list() argument
623 shell_error(sh, in cmd_tbs_set_uri_scheme_list()
631 shell_error(sh, "Invalid service_index: %lu", in cmd_tbs_set_uri_scheme_list()
646 shell_print(sh, "Could not set URI prefix list: %d", result); in cmd_tbs_set_uri_scheme_list()
652 static int cmd_tbs_print_calls(const struct shell *sh, size_t argc, in cmd_tbs_print_calls() argument
663 static int cmd_tbs(const struct shell *sh, size_t argc, char **argv) in cmd_tbs() argument
666 shell_error(sh, "%s unknown parameter: %s", argv[0], in cmd_tbs()
669 shell_error(sh, "%s Missing subcommand", argv[0]); in cmd_tbs()