| 129 | /* ── JSON helpers ─────────────────────────────────────────────────── */ |
| 130 | |
| 131 | static const char *ha_obj_str(yyjson_val *obj, const char *key) { |
| 132 | yyjson_val *v = obj ? yyjson_obj_get(obj, key) : NULL; |
| 133 | return (v && yyjson_is_str(v)) ? yyjson_get_str(v) : NULL; |
| 134 | } |
| 135 | |
| 136 | /* Build the search_graph args JSON: {"project":..,"name_pattern":".*tok.*", |
| 137 | * "limit":N}. `token` is a pure identifier so regex embedding is safe. */ |
no outgoing calls
no test coverage detected