MCPcopy Create free account
hub / github.com/corosync/corosync / cpg_initialize

Function cpg_initialize

lib/cpg.c:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 */
168
169cs_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
185cs_error_t cpg_model_initialize (
186 cpg_handle_t *handle,

Callers 12

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
connect_and_joinFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

cpg_model_initializeFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68