Lines Matching full:result
126 int result = 0; in cmd_tbs_accept() local
128 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept()
129 if (result != 0) { in cmd_tbs_accept()
130 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_accept()
141 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept()
142 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_accept()
143 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_accept()
149 return result; in cmd_tbs_accept()
156 int result = 0; in cmd_tbs_terminate() local
158 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate()
159 if (result != 0) { in cmd_tbs_terminate()
160 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_terminate()
171 result = bt_tbs_terminate((uint8_t)call_index); in cmd_tbs_terminate()
172 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_terminate()
173 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_terminate()
179 return result; in cmd_tbs_terminate()
185 int result = 0; in cmd_tbs_hold() local
187 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_hold()
188 if (result != 0) { in cmd_tbs_hold()
189 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_hold()
200 result = bt_tbs_hold((uint8_t)call_index); in cmd_tbs_hold()
201 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_hold()
202 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_hold()
208 return result; in cmd_tbs_hold()
215 int result = 0; in cmd_tbs_retrieve() local
217 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_retrieve()
218 if (result != 0) { in cmd_tbs_retrieve()
219 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_retrieve()
230 result = bt_tbs_retrieve((uint8_t)call_index); in cmd_tbs_retrieve()
231 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_retrieve()
232 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_retrieve()
238 return result; in cmd_tbs_retrieve()
245 int result = 0; in cmd_tbs_originate() local
248 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_originate()
249 if (result != 0) { in cmd_tbs_originate()
251 result); in cmd_tbs_originate()
266 result = bt_tbs_originate((uint8_t)service_index, argv[argc - 1], in cmd_tbs_originate()
268 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_originate()
269 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_originate()
274 return result; in cmd_tbs_originate()
281 int result = 0; in cmd_tbs_join() local
284 call_index = shell_strtoul(argv[i], 0, &result); in cmd_tbs_join()
285 if (result != 0) { in cmd_tbs_join()
287 result); in cmd_tbs_join()
301 result = bt_tbs_join(argc - 1, call_indexes); in cmd_tbs_join()
302 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_join()
303 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_join()
308 return result; in cmd_tbs_join()
314 int result = 0; in cmd_tbs_answer() local
316 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_answer()
317 if (result != 0) { in cmd_tbs_answer()
318 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_answer()
329 result = bt_tbs_remote_answer((uint8_t)call_index); in cmd_tbs_answer()
330 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_answer()
331 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_answer()
337 return result; in cmd_tbs_answer()
344 int result = 0; in cmd_tbs_remote_hold() local
346 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_hold()
347 if (result != 0) { in cmd_tbs_remote_hold()
348 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_hold()
359 result = bt_tbs_remote_hold((uint8_t)call_index); in cmd_tbs_remote_hold()
360 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_remote_hold()
361 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_hold()
367 return result; in cmd_tbs_remote_hold()
374 int result = 0; in cmd_tbs_remote_retrieve() local
376 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_retrieve()
377 if (result != 0) { in cmd_tbs_remote_retrieve()
378 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_retrieve()
389 result = bt_tbs_remote_retrieve((uint8_t)call_index); in cmd_tbs_remote_retrieve()
390 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_remote_retrieve()
391 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_retrieve()
397 return result; in cmd_tbs_remote_retrieve()
404 int result = 0; in cmd_tbs_remote_terminate() local
406 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_terminate()
407 if (result != 0) { in cmd_tbs_remote_terminate()
408 shell_error(sh, "Could not parse call_index: %d", result); in cmd_tbs_remote_terminate()
419 result = bt_tbs_remote_terminate((uint8_t)call_index); in cmd_tbs_remote_terminate()
420 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_remote_terminate()
421 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_remote_terminate()
427 return result; in cmd_tbs_remote_terminate()
433 int result = 0; in cmd_tbs_incoming() local
439 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_incoming()
440 if (result != 0) { in cmd_tbs_incoming()
443 result); in cmd_tbs_incoming()
459 result = bt_tbs_remote_incoming((uint8_t)service_index, in cmd_tbs_incoming()
463 if (result < 0) { in cmd_tbs_incoming()
464 shell_print(sh, "TBS failed: %d", result); in cmd_tbs_incoming()
469 return result; in cmd_tbs_incoming()
476 int result = 0; in cmd_tbs_set_bearer_provider_name() local
482 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_set_bearer_provider_name()
483 if (result != 0) { in cmd_tbs_set_bearer_provider_name()
486 result); in cmd_tbs_set_bearer_provider_name()
502 result = bt_tbs_set_bearer_provider_name((uint8_t)service_index, in cmd_tbs_set_bearer_provider_name()
504 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_set_bearer_provider_name()
505 shell_print(sh, "Could not set provider name: %d", result); in cmd_tbs_set_bearer_provider_name()
508 return result; in cmd_tbs_set_bearer_provider_name()
516 int result = 0; in cmd_tbs_set_bearer_technology() local
522 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_set_bearer_technology()
523 if (result != 0) { in cmd_tbs_set_bearer_technology()
526 result); in cmd_tbs_set_bearer_technology()
542 technology = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_set_bearer_technology()
543 if (result != 0) { in cmd_tbs_set_bearer_technology()
544 shell_error(sh, "Could not parse technology: %d", result); in cmd_tbs_set_bearer_technology()
555 result = bt_tbs_set_bearer_technology((uint8_t)service_index, in cmd_tbs_set_bearer_technology()
557 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_set_bearer_technology()
558 shell_print(sh, "Could not set technology: %d", result); in cmd_tbs_set_bearer_technology()
561 return result; in cmd_tbs_set_bearer_technology()
569 int result = 0; in cmd_tbs_set_bearer_signal_strength() local
575 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_set_bearer_signal_strength()
576 if (result != 0) { in cmd_tbs_set_bearer_signal_strength()
579 result); in cmd_tbs_set_bearer_signal_strength()
595 signal_strength = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_set_bearer_signal_strength()
596 if (result != 0) { in cmd_tbs_set_bearer_signal_strength()
597 shell_error(sh, "Could not parse signal_strength: %d", result); in cmd_tbs_set_bearer_signal_strength()
609 result = bt_tbs_set_signal_strength((uint8_t)service_index, in cmd_tbs_set_bearer_signal_strength()
611 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_set_bearer_signal_strength()
612 shell_print(sh, "Could not set signal strength: %d", result); in cmd_tbs_set_bearer_signal_strength()
615 return result; in cmd_tbs_set_bearer_signal_strength()
623 int result = 0; in cmd_tbs_set_status_flags() local
629 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_set_status_flags()
630 if (result != 0) { in cmd_tbs_set_status_flags()
633 result); in cmd_tbs_set_status_flags()
649 status_flags = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_set_status_flags()
650 if (result != 0) { in cmd_tbs_set_status_flags()
651 shell_error(sh, "Could not parse status_flags: %d", result); in cmd_tbs_set_status_flags()
662 result = bt_tbs_set_status_flags((uint8_t)service_index, in cmd_tbs_set_status_flags()
664 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_set_status_flags()
665 shell_print(sh, "Could not set status flags: %d", result); in cmd_tbs_set_status_flags()
668 return result; in cmd_tbs_set_status_flags()
675 int result = 0; in cmd_tbs_set_uri_scheme_list() local
681 service_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_set_uri_scheme_list()
682 if (result != 0) { in cmd_tbs_set_uri_scheme_list()
685 result); in cmd_tbs_set_uri_scheme_list()
701 result = bt_tbs_set_uri_scheme_list((uint8_t)service_index, in cmd_tbs_set_uri_scheme_list()
705 if (result != BT_TBS_RESULT_CODE_SUCCESS) { in cmd_tbs_set_uri_scheme_list()
706 shell_print(sh, "Could not set URI prefix list: %d", result); in cmd_tbs_set_uri_scheme_list()
709 return result; in cmd_tbs_set_uri_scheme_list()