| 167 | */ |
| 168 | |
| 169 | cs_error_t cpg_initialize ( |
| 170 | cpg_handle_t *handle, |
| 171 | cpg_callbacks_t *callbacks) |
| 172 | { |
| 173 | cpg_model_v1_data_t model_v1_data; |
| 174 | |
| 175 | memset (&model_v1_data, 0, sizeof (cpg_model_v1_data_t)); |
| 176 | |
| 177 | if (callbacks) { |
| 178 | model_v1_data.cpg_deliver_fn = callbacks->cpg_deliver_fn; |
| 179 | model_v1_data.cpg_confchg_fn = callbacks->cpg_confchg_fn; |
| 180 | } |
| 181 | |
| 182 | return (cpg_model_initialize (handle, CPG_MODEL_V1, (cpg_model_data_t *)&model_v1_data, NULL)); |
| 183 | } |
| 184 | |
| 185 | cs_error_t cpg_model_initialize ( |
| 186 | cpg_handle_t *handle, |