runscript.h 288 B

1234567891011
  1. #include <string>
  2. #include <vector>
  3. extern "C" {
  4. /* Runs the configured script with the given (single) argument and
  5. * environment variables. Returns -1 upon failure, or the exit code of
  6. * the script upon success. */
  7. int run_script(std::string arg0, std::vector<std::string> env);
  8. }