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

Function srd_log_uninit

libsigrokdecode4DSL/log.c:50–59  ·  view source on GitHub ↗

* Destroy the private log context */

Source from the content-addressed store, hash-verified

48 * Destroy the private log context
49 */
50SRD_PRIV void srd_log_uninit()
51{
52 if (is_private_log && log_ctx){
53 xlog_free(log_ctx);
54 log_ctx = 0;
55 xlog_free_writer(srd_log);
56 srd_log = 0;
57 is_private_log = 0;
58 }
59}
60
61/**
62 * Use a shared context, and drop the private log context

Callers 2

srd_log_set_contextFunction · 0.85
srd_exitFunction · 0.85

Calls 2

xlog_freeFunction · 0.85
xlog_free_writerFunction · 0.85

Tested by

no test coverage detected