| 4288 | |
| 4289 | |
| 4290 | JService* 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 | |
| 4325 | void JService::deprecatedDetach(CheckStatusWrapper* user_status) |
no test coverage detected