MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_service_detach

Function API_ROUTINE isc_service_detach

src/yvalve/why.cpp:3460–3479  ·  view source on GitHub ↗

Close down a service.

Source from the content-addressed store, hash-verified

3458
3459// Close down a service.
3460ISC_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.

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
detachMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected