MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_ui_log_close

Function cbm_ui_log_close

src/ui/http_server.c:505–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505void cbm_ui_log_close(void) {
506 cbm_ui_log_init();
507 cbm_mutex_lock(&g_log_mutex);
508 if (sqlite3_close(g_activity_db) == SQLITE_OK) {
509 g_activity_db = NULL;
510 g_activity_path[0] = '\0';
511 }
512 cbm_mutex_unlock(&g_log_mutex);
513}
514
515/* Append a printf-formatted fragment at *pos within a bufsz buffer, never
516 * advancing *pos past bufsz. snprintf returns the length it WOULD have written,

Callers 2

cbm_http_server_freeFunction · 0.85
host_log_closeFunction · 0.85

Calls 3

cbm_ui_log_initFunction · 0.85
cbm_mutex_lockFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected