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.
56mod accessible;
7mod action;
8mod application;
9mod component;
10mod text;
11mod value;
1213use crate::atspi::{ObjectId, OwnedObjectAddress};
14use zbus::{fdo, names::UniqueName};
1516fn map_root_error(error: accesskit_atspi_common::Error) -> fdo::Error {
17crate::util::map_error(ObjectId::Root, error)
18}
1920fn optional_object_address(
21 bus_name: &UniqueName,
22 object_id: Option<ObjectId>,
23) -> (OwnedObjectAddress,) {
24match object_id {
25Some(id) => (id.to_address(bus_name),),
26None => (OwnedObjectAddress::null(),),
27 }
28}
2930pub(crate) use accessible::*;
31pub(crate) use action::*;
32pub(crate) use application::*;
33pub(crate) use component::*;
34pub(crate) use text::*;
35pub(crate) use value::*;