You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
1.3 KiB

  1. // rust_g.dm - DM API for rust_g extension library
  2. #define RUST_G "rust_g"
  3. #define RUSTG_JOB_NO_RESULTS_YET "NO RESULTS YET"
  4. #define RUSTG_JOB_NO_SUCH_JOB "NO SUCH JOB"
  5. #define RUSTG_JOB_ERROR "JOB PANICKED"
  6. #define rustg_dmi_strip_metadata(fname) call(RUST_G, "dmi_strip_metadata")(fname)
  7. #define rustg_dmi_create_png(fname,width,height,data) call(RUST_G, "dmi_create_png")(fname,width,height,data)
  8. #define rustg_git_revparse(rev) call(RUST_G, "rg_git_revparse")(rev)
  9. #define rustg_git_commit_date(rev) call(RUST_G, "rg_git_commit_date")(rev)
  10. #define rustg_log_write(fname, text, format) call(RUST_G, "log_write")(fname, text, format)
  11. /proc/rustg_log_close_all() return call(RUST_G, "log_close_all")()
  12. // RUST-G defines & procs for HTTP component
  13. #define RUSTG_HTTP_METHOD_GET "get"
  14. #define RUSTG_HTTP_METHOD_POST "post"
  15. #define RUSTG_HTTP_METHOD_PUT "put"
  16. #define RUSTG_HTTP_METHOD_DELETE "delete"
  17. #define RUSTG_HTTP_METHOD_PATCH "patch"
  18. #define RUSTG_HTTP_METHOD_HEAD "head"
  19. #define rustg_http_request_blocking(method, url, body, headers) call(RUST_G, "http_request_blocking")(method, url, body, headers)
  20. #define rustg_http_request_async(method, url, body, headers) call(RUST_G, "http_request_async")(method, url, body, headers)
  21. #define rustg_http_check_request(req_id) call(RUST_G, "http_check_request")(req_id)