accesskit_unix/atspi/interfaces/
mod.rs

1// Copyright 2022 The AccessKit Authors. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (found in
3// the LICENSE-APACHE file) or the MIT license (found in
4// the LICENSE-MIT file), at your option.
5
6mod accessible;
7mod action;
8mod application;
9mod component;
10mod text;
11mod value;
12
13use crate::atspi::{ObjectId, OwnedObjectAddress};
14use zbus::{fdo, names::UniqueName};
15
16fn map_root_error(error: accesskit_atspi_common::Error) -> fdo::Error {
17    crate::util::map_error(ObjectId::Root, error)
18}
19
20fn optional_object_address(
21    bus_name: &UniqueName,
22    object_id: Option<ObjectId>,
23) -> (OwnedObjectAddress,) {
24    match object_id {
25        Some(id) => (id.to_address(bus_name),),
26        None => (OwnedObjectAddress::null(),),
27    }
28}
29
30pub(crate) use accessible::*;
31pub(crate) use action::*;
32pub(crate) use application::*;
33pub(crate) use component::*;
34pub(crate) use text::*;
35pub(crate) use value::*;