| 330 | } |
| 331 | |
| 332 | cs_error_t cpg_context_get ( |
| 333 | cpg_handle_t handle, |
| 334 | void **context) |
| 335 | { |
| 336 | cs_error_t error; |
| 337 | struct cpg_inst *cpg_inst; |
| 338 | |
| 339 | error = hdb_error_to_cs (hdb_handle_get (&cpg_handle_t_db, handle, (void *)&cpg_inst)); |
| 340 | if (error != CS_OK) { |
| 341 | return (error); |
| 342 | } |
| 343 | |
| 344 | *context = cpg_inst->context; |
| 345 | |
| 346 | hdb_handle_put (&cpg_handle_t_db, handle); |
| 347 | |
| 348 | return (CS_OK); |
| 349 | } |
| 350 | |
| 351 | cs_error_t cpg_context_set ( |
| 352 | cpg_handle_t handle, |
no test coverage detected