moved from dbus_interface to interface due to deprecation warning

This commit is contained in:
Joshua Ferguson 2024-06-20 14:32:09 -04:00 • committed by Ashley Wulber
parent ecb53ed8f8
commit 23c062951c

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only // SPDX-License-Identifier: GPL-3.0-only
use tokio::sync::mpsc; use tokio::sync::mpsc;
use zbus::dbus_interface; use zbus::interface;
pub enum SessionRequest { pub enum SessionRequest {
Exit, Exit,
@ -11,7 +11,7 @@ pub struct SessionService {
pub session_tx: mpsc::Sender<SessionRequest>, pub session_tx: mpsc::Sender<SessionRequest>,
} }
#[dbus_interface(name = "com.system76.CosmicSession")] #[interface(name = "com.system76.CosmicSession")]
impl SessionService { impl SessionService {
async fn exit(&mut self) { async fn exit(&mut self) {
warn!("exiting session"); warn!("exiting session");