moved from dbus_interface to interface due to deprecation warning
This commit is contained in:
parent
ecb53ed8f8
commit
23c062951c
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
use tokio::sync::mpsc;
|
||||
use zbus::dbus_interface;
|
||||
use zbus::interface;
|
||||
|
||||
pub enum SessionRequest {
|
||||
Exit,
|
||||
|
|
@ -11,7 +11,7 @@ pub struct SessionService {
|
|||
pub session_tx: mpsc::Sender<SessionRequest>,
|
||||
}
|
||||
|
||||
#[dbus_interface(name = "com.system76.CosmicSession")]
|
||||
#[interface(name = "com.system76.CosmicSession")]
|
||||
impl SessionService {
|
||||
async fn exit(&mut self) {
|
||||
warn!("exiting session");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue