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

Function cbm_userconfig_project_source

src/discover/userconfig.c:507–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507cbm_userconfig_source_state_t cbm_userconfig_project_source(const cbm_userconfig_t *cfg,
508 const char **bytes, size_t *len) {
509 if (bytes)
510 *bytes = NULL;
511 if (len)
512 *len = 0;
513 if (!cfg || !cfg->project_source)
514 return CBM_USERCONFIG_SOURCE_ERROR;
515 const cbm_userconfig_source_t *source = cfg->project_source;
516 if (source->state == CBM_USERCONFIG_SOURCE_PRESENT) {
517 if (bytes)
518 *bytes = source->bytes;
519 if (len)
520 *len = source->len;
521 }
522 return source->state;
523}
524
525CBMLanguage cbm_userconfig_lookup(const cbm_userconfig_t *cfg, const char *ext) {
526 if (!cfg || !ext || !ext[0]) {

Callers 6

frozen_configFunction · 0.85
pf_snapshot_viewFunction · 0.85
test_userconfig.cFile · 0.85

Calls

no outgoing calls

Tested by 1

pf_snapshot_viewFunction · 0.68