| 109 | } |
| 110 | |
| 111 | static struct command_result *json_shutdown(struct command *cmd, |
| 112 | const char *buf, |
| 113 | const jsmntok_t *params) |
| 114 | { |
| 115 | struct test_libplugin *tlp = get_test_libplugin(cmd->plugin); |
| 116 | plugin_log(cmd->plugin, LOG_DBG, "shutdown called"); |
| 117 | |
| 118 | if (tlp->dont_shutdown) |
| 119 | return notification_handled(cmd); |
| 120 | |
| 121 | plugin_exit(cmd->plugin, 0); |
| 122 | } |
| 123 | |
| 124 | static struct command_result *json_all_notifs(struct command *cmd, |
| 125 | const char *buf, |
nothing calls this directly
no test coverage detected