Close down a service.
| 3458 | |
| 3459 | // Close down a service. |
| 3460 | ISC_STATUS API_ROUTINE isc_service_detach(ISC_STATUS* userStatus, isc_svc_handle* handle) |
| 3461 | { |
| 3462 | StatusVector status(userStatus); |
| 3463 | CheckStatusWrapper statusWrapper(&status); |
| 3464 | |
| 3465 | try |
| 3466 | { |
| 3467 | RefPtr<YService> service(translateHandle(services, handle)); |
| 3468 | service->detach(&statusWrapper); |
| 3469 | |
| 3470 | if (!(status.getState() & IStatus::STATE_ERRORS)) |
| 3471 | *handle = 0; |
| 3472 | } |
| 3473 | catch (const Exception& e) |
| 3474 | { |
| 3475 | e.stuffException(&statusWrapper); |
| 3476 | } |
| 3477 | |
| 3478 | return status[1]; |
| 3479 | } |
| 3480 | |
| 3481 | |
| 3482 | // Provide information on service object. |
nothing calls this directly
no test coverage detected