mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-06 22:39:04 +00:00
Restores canvases showing up their content on the map. This only gets updated on finalizing/naming the painting. Adds persistent paintings, set persistence_id on sign/painting on your map to use it. Bumps rustg up to 4.3
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
// rust_g.dm - DM API for rust_g extension library
|
|
#define RUST_G "rust_g"
|
|
|
|
#define RUSTG_JOB_NO_RESULTS_YET "NO RESULTS YET"
|
|
#define RUSTG_JOB_NO_SUCH_JOB "NO SUCH JOB"
|
|
#define RUSTG_JOB_ERROR "JOB PANICKED"
|
|
|
|
#define rustg_dmi_strip_metadata(fname) call(RUST_G, "dmi_strip_metadata")(fname)
|
|
#define rustg_dmi_create_png(fname,width,height,data) call(RUST_G, "dmi_create_png")(fname,width,height,data)
|
|
|
|
#define rustg_git_revparse(rev) call(RUST_G, "rg_git_revparse")(rev)
|
|
#define rustg_git_commit_date(rev) call(RUST_G, "rg_git_commit_date")(rev)
|
|
|
|
#define rustg_log_write(fname, text) call(RUST_G, "log_write")(fname, text)
|
|
/proc/rustg_log_close_all() return call(RUST_G, "log_close_all")()
|
|
|
|
// RUST-G defines & procs for HTTP component
|
|
#define RUSTG_HTTP_METHOD_GET "get"
|
|
#define RUSTG_HTTP_METHOD_POST "post"
|
|
#define RUSTG_HTTP_METHOD_PUT "put"
|
|
#define RUSTG_HTTP_METHOD_DELETE "delete"
|
|
#define RUSTG_HTTP_METHOD_PATCH "patch"
|
|
#define RUSTG_HTTP_METHOD_HEAD "head"
|
|
|
|
#define rustg_http_request_blocking(method, url, body, headers) call(RUST_G, "http_request_blocking")(method, url, body, headers)
|
|
#define rustg_http_request_async(method, url, body, headers) call(RUST_G, "http_request_async")(method, url, body, headers)
|
|
#define rustg_http_check_request(req_id) call(RUST_G, "http_check_request")(req_id)
|