New command, without a filter */
| 164 | |
| 165 | /* New command, without a filter */ |
| 166 | static struct command *new_command(const tal_t *ctx, |
| 167 | struct plugin *plugin, |
| 168 | const char *id TAKES, |
| 169 | const char *methodname TAKES, |
| 170 | enum command_type type) |
| 171 | { |
| 172 | struct command *cmd = tal(ctx, struct command); |
| 173 | |
| 174 | cmd->plugin = plugin; |
| 175 | cmd->type = type; |
| 176 | cmd->filter = NULL; |
| 177 | cmd->methodname = tal_strdup(cmd, methodname); |
| 178 | cmd->id = tal_strdup(cmd, id); |
| 179 | return cmd; |
| 180 | } |
| 181 | |
| 182 | static int rpc_open(struct plugin *plugin) |
| 183 | { |
no outgoing calls
no test coverage detected