MCPcopy Create free account
hub / github.com/antirez/ds4 / json_args_push

Function json_args_push

ds4_server.c:2073–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071 }
2072 (*p)++;
2073 bool ok;
2074 if (!strcmp(key, "type"))
2075 ok = json_string_replace(p, source_type);
2076 else if (!strcmp(key, "media_type"))
2077 ok = json_string_replace(p, media_type);
2078 else if (!strcmp(key, "data"))
2079 ok = json_string_replace(p, data);
2080 else
2081 ok = json_skip_value(p);
2082 free(key);

Callers 1

json_args_parseFunction · 0.85

Calls 1

xreallocFunction · 0.70

Tested by

no test coverage detected