[WIP] Encryption for secure values (#183)

This commit is contained in:
Gregory Schier
2025-04-15 07:18:26 -07:00
committed by GitHub
parent e114a85c39
commit 2e55a1bd6d
208 changed files with 4063 additions and 28698 deletions

View File

@@ -1,5 +1,5 @@
use crate::error::Result;
use crate::events::{BootResponse, InternalEvent, InternalEventPayload, WindowContext};
use crate::events::{BootResponse, InternalEvent, InternalEventPayload, PluginWindowContext};
use crate::util::gen_id;
use log::info;
use std::path::Path;
@@ -37,7 +37,7 @@ impl PluginHandle {
pub fn build_event_to_send(
&self,
window_context: &WindowContext,
window_context: &PluginWindowContext,
payload: &InternalEventPayload,
reply_id: Option<String>,
) -> InternalEvent {
@@ -46,7 +46,7 @@ impl PluginHandle {
pub(crate) fn build_event_to_send_raw(
&self,
window_context: &WindowContext,
window_context: &PluginWindowContext,
payload: &InternalEventPayload,
reply_id: Option<String>,
) -> InternalEvent {
@@ -61,7 +61,7 @@ impl PluginHandle {
}
}
pub async fn terminate(&self, window_context: &WindowContext) -> Result<()> {
pub async fn terminate(&self, window_context: &PluginWindowContext) -> Result<()> {
info!("Terminating plugin {}", self.dir);
let event =
self.build_event_to_send(window_context, &InternalEventPayload::TerminateRequest, None);