| 174 | }; |
| 175 | |
| 176 | int main(int argc, char *argv[]) |
| 177 | { |
| 178 | setup_locale(); |
| 179 | plugin_main(argv, init, PLUGIN_RESTARTABLE, true, NULL, |
| 180 | commands, ARRAY_SIZE(commands), |
| 181 | notifs, ARRAY_SIZE(notifs), hooks, ARRAY_SIZE(hooks), |
| 182 | NULL, 0, /* Notification topics we publish */ |
| 183 | plugin_option("name", |
| 184 | "string", |
| 185 | "Who to say hello to.", |
| 186 | charp_option, &name_option), |
| 187 | plugin_option_deprecated("name-deprecated", |
| 188 | "string", |
| 189 | "Who to say hello to.", |
| 190 | charp_option, &name_option), |
| 191 | plugin_option("selfdisable", |
| 192 | "flag", |
| 193 | "Whether to disable.", |
| 194 | flag_option, &self_disable), |
| 195 | plugin_option("dont_shutdown", |
| 196 | "flag", |
| 197 | "Whether to timeout when asked to shutdown.", |
| 198 | flag_option, &dont_shutdown), |
| 199 | NULL); |
| 200 | } |
nothing calls this directly
no test coverage detected