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

Function cpg_context_set

lib/cpg.c:351–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351cs_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
370cs_error_t cpg_dispatch (
371 cpg_handle_t handle,

Callers 2

mainFunction · 0.85
context_setFunction · 0.85

Calls 3

hdb_error_to_csFunction · 0.85
hdb_handle_getFunction · 0.85
hdb_handle_putFunction · 0.85

Tested by

no test coverage detected