MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / attachServiceManager

Method attachServiceManager

src/jrd/jrd.cpp:4290–4322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4288
4289
4290JService* JProvider::attachServiceManager(CheckStatusWrapper* user_status, const char* service_name,
4291 unsigned int spbLength, const unsigned char* spb)
4292{
4293/**************************************
4294 *
4295 * g d s _ $ s e r v i c e _ a t t a c h
4296 *
4297 **************************************
4298 *
4299 * Functional description
4300 * Connect to a Firebird service.
4301 *
4302 **************************************/
4303 JService* jSvc = NULL;
4304
4305 try
4306 {
4307 ThreadContextHolder tdbb(user_status);
4308
4309 Service* svc = FB_NEW Service(service_name, spbLength, spb, cryptCallback);
4310 jSvc = FB_NEW JService(svc);
4311 jSvc->addRef();
4312 }
4313 catch (const Exception& ex)
4314 {
4315 ex.stuffException(user_status);
4316 return jSvc;
4317 }
4318
4319 successful_completion(user_status);
4320
4321 return jSvc;
4322}
4323
4324
4325void JService::deprecatedDetach(CheckStatusWrapper* user_status)

Callers 3

svc_api_gbakFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 5

JServiceClass · 0.85
successful_completionFunction · 0.85
ServiceClass · 0.70
addRefMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected