diff --git a/src/flatpak/development.rs b/src/flatpak/development.rs index 402fa440f..e1ae10bb7 100644 --- a/src/flatpak/development.rs +++ b/src/flatpak/development.rs @@ -9,7 +9,7 @@ use futures_util::Stream; use serde_repr::{Deserialize_repr, Serialize_repr}; use zbus::zvariant::{Fd, Type}; -use crate::{proxy::Proxy, Error, FilePath}; +use crate::{proxy::Proxy, Error, FilePath, Pid}; #[bitflags] #[derive(Serialize_repr, Deserialize_repr, PartialEq, Eq, Copy, Clone, Debug, Type)] @@ -106,7 +106,7 @@ impl<'a> Development<'a> { #[doc(alias = "xdp_portal_spawn_signal")] pub async fn host_command_signal( &self, - pid: u32, + pid: Pid, signal: u32, to_process_group: bool, ) -> Result<(), Error> { diff --git a/src/flatpak/mod.rs b/src/flatpak/mod.rs index 71e0aeb40..c9037a74c 100644 --- a/src/flatpak/mod.rs +++ b/src/flatpak/mod.rs @@ -38,7 +38,7 @@ use serde::Serialize; use serde_repr::{Deserialize_repr, Serialize_repr}; use zbus::zvariant::{self, Fd, OwnedObjectPath, SerializeDict, Type}; -use crate::{proxy::Proxy, Error, FilePath}; +use crate::{proxy::Proxy, Error, FilePath, Pid}; #[bitflags] #[derive(Serialize_repr, Deserialize_repr, PartialEq, Eq, Copy, Clone, Debug, Type)] @@ -357,7 +357,7 @@ impl<'a> Flatpak<'a> { #[doc(alias = "xdp_portal_spawn_signal")] pub async fn spawn_signal( &self, - pid: u32, + pid: Pid, signal: u32, to_process_group: bool, ) -> Result<(), Error> {