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

Function dk_hub_push

src/pipeline/pass_docker.c:1875–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873}
1874
1875static void dk_hub_push(CBMArena *a, dk_hub_edges_t *l, const cbm_gbuf_edge_t *e, const char *tag) {
1876 dk_hub_edge_t *v = dk_grow(a, l->v, l->n, &l->cap, sizeof(*v));
1877 if (!v) {
1878 return;
1879 }
1880 l->v = v;
1881 l->v[l->n++] = (dk_hub_edge_t){e,
1882 e->source_id,
1883 e->target_id,
1884 cbm_arena_strdup(a, e->type),
1885 cbm_arena_strdup(a, e->properties_json),
1886 cbm_arena_strdup(a, tag),
1887 -1};
1888}
1889
1890/* Is an edge of `type` with properties `p` a reference to an image --
1891 * USAGE {ref:image}, or DEPENDS_ON {via:from|copy-from}? */

Callers 1

dk_hub_collectFunction · 0.85

Calls 2

dk_growFunction · 0.85
cbm_arena_strdupFunction · 0.50

Tested by

no test coverage detected