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

Function cpg_context_get

lib/cpg.c:332–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332cs_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
351cs_error_t cpg_context_set (
352 cpg_handle_t handle,

Callers 2

mainFunction · 0.85
context_getFunction · 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