MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / xlog_create_writer

Function xlog_create_writer

common/log/xlog.c:469–480  ·  view source on GitHub ↗

* create a new writer */

Source from the content-addressed store, hash-verified

467 * create a new writer
468 */
469XLOG_API xlog_writer* xlog_create_writer(xlog_context* ctx, const char *domain)
470{
471 xlog_writer *wr = NULL;
472
473 if (ctx != NULL){
474 wr = (xlog_writer*)malloc(sizeof(xlog_writer));
475 wr->_ctx = ctx;
476 xlog_set_domain(wr, domain);
477 return wr;
478 }
479 return NULL;
480}
481
482/**
483 * free a log writer

Callers 5

srd_log_initFunction · 0.85
srd_log_set_contextFunction · 0.85
dsv_log_initFunction · 0.85
sr_log_initFunction · 0.85
ds_log_set_contextFunction · 0.85

Calls 1

xlog_set_domainFunction · 0.85

Tested by

no test coverage detected