! * \brief Runs the Syncthing command using the specified \a arguments. */
| 270 | * \brief Runs the Syncthing command using the specified \a arguments. |
| 271 | */ |
| 272 | long long runCommand(const std::vector<const char *> &arguments) |
| 273 | { |
| 274 | if (arguments.empty()) { |
| 275 | setArguments("serve", std::vector<const char *>::const_iterator(), std::vector<const char *>::const_iterator()); |
| 276 | } else { |
| 277 | setArguments(arguments.front(), ++arguments.begin(), arguments.end()); |
| 278 | } |
| 279 | return ::libst_run_main(); |
| 280 | } |
| 281 | |
| 282 | /*! |
| 283 | * \brief Verifies \a data with the specified \a pubKeyPEM and \a signature. |