| 1208 | } |
| 1209 | |
| 1210 | static void plugin_rpcmethod_cb(const char *buffer, |
| 1211 | const jsmntok_t *toks, |
| 1212 | const jsmntok_t *idtok, |
| 1213 | struct command *cmd) |
| 1214 | { |
| 1215 | struct json_stream *response; |
| 1216 | |
| 1217 | response = json_stream_raw_for_cmd(cmd); |
| 1218 | json_stream_forward_change_id(response, buffer, toks, idtok, cmd->id); |
| 1219 | json_stream_double_cr(response); |
| 1220 | command_raw_complete(cmd, response); |
| 1221 | } |
| 1222 | |
| 1223 | static void plugin_notify_cb(const char *buffer, |
| 1224 | const jsmntok_t *methodtok, |
nothing calls this directly
no test coverage detected