mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Ports rust-g -> rustlibs: toast (#29379)
* moves rustg_toast to rustlibs_toast * Build Rust library * Build Rust library * Update rust/Cargo.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> * Build Rust library * throw out old binaries --------- Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent
0b254678a0
commit
4882ffe053
@@ -189,6 +189,12 @@
|
||||
return RUSTLIB_CALL(redis_publish, channel, message)
|
||||
|
||||
|
||||
// MARK: Toast
|
||||
/// (Windows only) Triggers a desktop notification with the specified title and body
|
||||
/proc/rustlibs_create_toast(title, body)
|
||||
return RUSTLIB_CALL(create_toast, title, body)
|
||||
|
||||
|
||||
// MARK: HTTP
|
||||
#define RUSTLIBS_HTTP_METHOD_GET "get"
|
||||
#define RUSTLIBS_HTTP_METHOD_PUT "put"
|
||||
|
||||
@@ -82,7 +82,3 @@
|
||||
#define rustg_sql_connected(handle) RUSTG_CALL(RUST_G, "sql_connected")(handle)
|
||||
#define rustg_sql_disconnect_pool(handle) RUSTG_CALL(RUST_G, "sql_disconnect_pool")(handle)
|
||||
#define rustg_sql_check_query(job_id) RUSTG_CALL(RUST_G, "sql_check_query")("[job_id]")
|
||||
|
||||
// Toast Operations //
|
||||
|
||||
#define rustg_create_toast(title, body) RUSTG_CALL(RUST_G, "create_toast")(title, body)
|
||||
|
||||
Reference in New Issue
Block a user