| 355 | } |
| 356 | |
| 357 | error_code cellNetCtlNetStartDialogUnloadAsync( |
| 358 | vm::ptr<CellNetCtlNetStartDialogResult> result) |
| 359 | { |
| 360 | cellNetCtl.warning("cellNetCtlNetStartDialogUnloadAsync(result=*0x%x)", |
| 361 | result); |
| 362 | |
| 363 | auto& nph = g_fxo->get<named_thread<np::np_handler>>(); |
| 364 | |
| 365 | if (!nph.is_netctl_init) |
| 366 | { |
| 367 | return CELL_NET_CTL_ERROR_NOT_INITIALIZED; |
| 368 | } |
| 369 | |
| 370 | if (!result) |
| 371 | { |
| 372 | return CELL_NET_CTL_ERROR_INVALID_ADDR; |
| 373 | } |
| 374 | |
| 375 | if (result->size != 8u) |
| 376 | { |
| 377 | return CELL_NET_CTL_ERROR_INVALID_SIZE; |
| 378 | } |
| 379 | |
| 380 | result->result = nph.get_net_status() == CELL_NET_CTL_STATE_IPObtained ? 0 : CELL_NET_CTL_ERROR_DIALOG_CANCELED; |
| 381 | |
| 382 | sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0); |
| 383 | return CELL_OK; |
| 384 | } |
| 385 | |
| 386 | error_code cellNetCtlGetNatInfo(vm::ptr<CellNetCtlNatInfo> natInfo) |
| 387 | { |
nothing calls this directly
no test coverage detected