| 349 | } |
| 350 | |
| 351 | cs_error_t cpg_context_set ( |
| 352 | cpg_handle_t handle, |
| 353 | void *context) |
| 354 | { |
| 355 | cs_error_t error; |
| 356 | struct cpg_inst *cpg_inst; |
| 357 | |
| 358 | error = hdb_error_to_cs (hdb_handle_get (&cpg_handle_t_db, handle, (void *)&cpg_inst)); |
| 359 | if (error != CS_OK) { |
| 360 | return (error); |
| 361 | } |
| 362 | |
| 363 | cpg_inst->context = context; |
| 364 | |
| 365 | hdb_handle_put (&cpg_handle_t_db, handle); |
| 366 | |
| 367 | return (CS_OK); |
| 368 | } |
| 369 | |
| 370 | cs_error_t cpg_dispatch ( |
| 371 | cpg_handle_t handle, |
no test coverage detected