X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fjson_escape%2Fjson_escape.h;fp=ccan%2Fjson_escape%2Fjson_escape.h;h=5b33432f8fce768dc53b77ebeaf068a03d567fc9;hb=3ceb24bf19adbe59bf8aeda9cc1426b4ba2244c2;hp=b8e0dfca1d41e3042a1477343c8e3259760879c1;hpb=45f9ce170fe09bca014d874ffaa13b900c8285ba;p=ccan diff --git a/ccan/json_escape/json_escape.h b/ccan/json_escape/json_escape.h index b8e0dfca..5b33432f 100644 --- a/ccan/json_escape/json_escape.h +++ b/ccan/json_escape/json_escape.h @@ -27,7 +27,8 @@ struct json_escape *json_escape_len(const tal_t *ctx, struct json_escape *json_partial_escape(const tal_t *ctx, const char *str TAKES); -/* Extract a JSON-escaped string. */ +/* Do we need to escape this str? */ +bool json_escape_needed(const char *str, size_t len); /* Are two escape json strings identical? */ bool json_escape_eq(const struct json_escape *a,