Fix linux build
This commit is contained in:
@@ -21,7 +21,7 @@ fn initialize_logging() {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
use dbus::agent::DBusAgent;
|
||||
|
||||
// Start the D-Bus agent (events in, signals out).
|
||||
@@ -32,12 +32,12 @@ async fn start_ipc_agent(daemon: &Daemon) {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
// TODO: Implement macOS IPC agent.
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
panic!("Unsupported IPC platform");
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ async fn main() {
|
||||
.unwrap();
|
||||
|
||||
// Start the IPC agent.
|
||||
start_ipc_agent(&daemon).await;
|
||||
start_ipc_agent(&mut daemon).await;
|
||||
|
||||
// Run the main daemon loop.
|
||||
daemon.run().await;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
mod client;
|
||||
mod daemon;
|
||||
mod db;
|
||||
mod printers;
|
||||
mod daemon;
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
@@ -4,6 +4,9 @@ use std::collections::HashMap;
|
||||
use std::fmt::Display;
|
||||
use time::OffsetDateTime;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use dbus::arg::{self, RefArg};
|
||||
|
||||
pub struct PrintableConversation {
|
||||
pub guid: String,
|
||||
pub date: OffsetDateTime,
|
||||
|
||||
Reference in New Issue
Block a user