@@ -123,13 +123,10 @@ struct out_req *jsonrpc_request_start_(struct command *cmd,
123123 const jsmntok_t * result ,
124124 void * arg ),
125125 void * arg )
126- NON_NULL_ARGS (1 , 2 , 3 , 5 );
126+ NON_NULL_ARGS (1 , 2 , 5 );
127127
128- /* This variant has callbacks received whole obj, not "result" or
129- * "error" members. */
130- #define jsonrpc_request_start (cmd , method , cb , errcb , arg ) \
131- jsonrpc_request_start_((cmd), (method), \
132- json_id_prefix(tmpctx, (cmd)), NULL, \
128+ #define jsonrpc_request_start (cmd , method , cb , errcb , arg ) \
129+ jsonrpc_request_start_((cmd), (method), NULL, NULL, \
133130 typesafe_cb_preargs(struct command_result *, void *, \
134131 (cb), (arg), \
135132 struct command *command, \
@@ -143,8 +140,7 @@ struct out_req *jsonrpc_request_start_(struct command *cmd,
143140 (arg))
144141
145142#define jsonrpc_request_with_filter_start (cmd , method , filter , cb , errcb , arg ) \
146- jsonrpc_request_start_((cmd), (method), \
147- json_id_prefix(tmpctx, (cmd)), (filter), \
143+ jsonrpc_request_start_((cmd), (method), NULL, (filter), \
148144 typesafe_cb_preargs(struct command_result *, void *, \
149145 (cb), (arg), \
150146 struct command *command, \
@@ -160,7 +156,7 @@ struct out_req *jsonrpc_request_start_(struct command *cmd,
160156/* This variant has callbacks received whole obj, not "result" or
161157 * "error" members. It also doesn't start params{}. */
162158#define jsonrpc_request_whole_object_start (cmd , method , id_prefix , cb , arg ) \
163- jsonrpc_request_start_((cmd), (method), (id_prefix), NULL, \
159+ jsonrpc_request_start_((cmd), (method), (id_prefix), NULL, \
164160 typesafe_cb_preargs(struct command_result *, void *, \
165161 (cb), (arg), \
166162 struct command *command, \
@@ -641,9 +637,6 @@ struct createonion_response *json_to_createonion_response(const tal_t *ctx,
641637struct route_hop * json_to_route (const tal_t * ctx , const char * buffer ,
642638 const jsmntok_t * toks );
643639
644- /* Create a prefix (ending in /) for this cmd_id, if any. */
645- const char * json_id_prefix (const tal_t * ctx , const struct command * cmd );
646-
647640void plugin_set_memleak_handler (struct plugin * plugin ,
648641 void (* mark_mem )(struct plugin * plugin ,
649642 struct htable * memtable ));
0 commit comments