@@ -37,7 +37,7 @@ static const char *invoice_status_str(const struct invoice_details *inv)
3737 return "unpaid" ;
3838}
3939
40- static void json_add_invoice (struct json_result * response ,
40+ static void json_add_invoice (struct json_stream * response ,
4141 const struct invoice_details * inv )
4242{
4343 json_object_start (response , NULL );
@@ -64,7 +64,7 @@ static void json_add_invoice(struct json_result *response,
6464
6565static void tell_waiter (struct command * cmd , const struct invoice * inv )
6666{
67- struct json_result * response ;
67+ struct json_stream * response ;
6868 const struct invoice_details * details ;
6969
7070 details = wallet_invoice_details (cmd , cmd -> ld -> wallet , * inv );
@@ -213,7 +213,7 @@ static void gossipd_incoming_channels_reply(struct subd *gossipd,
213213 const int * fs ,
214214 struct invoice_info * info )
215215{
216- struct json_result * response ;
216+ struct json_stream * response ;
217217 struct route_info * inchans ;
218218 bool any_offline ;
219219 struct invoice invoice ;
@@ -390,7 +390,7 @@ static const struct json_command invoice_command = {
390390 "(default autogenerated)" };
391391AUTODATA (json_command , & invoice_command );
392392
393- static void json_add_invoices (struct json_result * response ,
393+ static void json_add_invoices (struct json_stream * response ,
394394 struct wallet * wallet ,
395395 const struct json_escaped * label )
396396{
@@ -418,7 +418,7 @@ static void json_listinvoices(struct command *cmd,
418418 const char * buffer , const jsmntok_t * params )
419419{
420420 struct json_escaped * label ;
421- struct json_result * response ;
421+ struct json_stream * response ;
422422 struct wallet * wallet = cmd -> ld -> wallet ;
423423 if (!param (cmd , buffer , params ,
424424 p_opt ("label" , json_tok_label , & label ),
@@ -445,7 +445,7 @@ static void json_delinvoice(struct command *cmd,
445445{
446446 struct invoice i ;
447447 const struct invoice_details * details ;
448- struct json_result * response ;
448+ struct json_stream * response ;
449449 const char * status , * actual_status ;
450450 struct json_escaped * label ;
451451 struct wallet * wallet = cmd -> ld -> wallet ;
@@ -612,7 +612,7 @@ static const struct json_command waitinvoice_command = {
612612};
613613AUTODATA (json_command , & waitinvoice_command );
614614
615- static void json_add_fallback (struct json_result * response ,
615+ static void json_add_fallback (struct json_stream * response ,
616616 const char * fieldname ,
617617 const u8 * fallback ,
618618 const struct chainparams * chain )
@@ -651,7 +651,7 @@ static void json_decodepay(struct command *cmd,
651651 const char * buffer , const jsmntok_t * params )
652652{
653653 struct bolt11 * b11 ;
654- struct json_result * response ;
654+ struct json_stream * response ;
655655 const char * str , * desc ;
656656 char * fail ;
657657
0 commit comments