aboutsummaryrefslogtreecommitdiffstats
path: root/src/wasm_vm.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-01-10 23:02:41 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-01-10 23:02:41 +0000
commit7e308515e5af960857504fc583b5900b3dc4edd4 (patch)
tree3c8728db22ca457fc430dd73ab05e387b1f378d5 /src/wasm_vm.rs
parentAdd support for layouts with parts of a fixed or unspecified size (diff)
downloadsl0ppij-7e308515e5af960857504fc583b5900b3dc4edd4.tar.gz
sl0ppij-7e308515e5af960857504fc583b5900b3dc4edd4.tar.xz
sl0ppij-7e308515e5af960857504fc583b5900b3dc4edd4.zip
Add a plugin callback for global keypresses
Diffstat (limited to 'src/wasm_vm.rs')
-rw-r--r--src/wasm_vm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm_vm.rs b/src/wasm_vm.rs
index 51bd9375..5324ee19 100644
--- a/src/wasm_vm.rs
+++ b/src/wasm_vm.rs
@@ -2,13 +2,13 @@ use std::{path::PathBuf, sync::mpsc::Sender};
use wasmer::{imports, Function, ImportObject, Store, WasmerEnv};
use wasmer_wasi::WasiEnv;
-use crate::{pty_bus::PtyInstruction, SenderWithContext};
+use crate::{panes::PaneId, pty_bus::PtyInstruction, SenderWithContext};
#[derive(Clone, Debug)]
pub enum PluginInstruction {
Load(Sender<u32>, PathBuf),
Draw(Sender<String>, u32, usize, usize), // String buffer, plugin id, rows, cols
- Input(u32, Vec<u8>), // plugin id, input bytes
+ Input(PaneId, Vec<u8>), // pane id, input bytes
Unload(u32),
Quit,
}