Skip to content

Commit

Permalink
flatpak: Use Pid type for pids
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh committed Sep 15, 2024
1 parent 535b323 commit 46678ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/flatpak/development.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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> {
Expand Down
4 changes: 2 additions & 2 deletions src/flatpak/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit 46678ac

Please sign in to comment.