// SPDX-FileCopyrightText: © 2026 Tim Culverhouse // SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie // SPDX-License-Identifier: MIT //! mdbus: a small D-Bus client transport for Zig. //! //! `Connection` is the entry point and re-exports the wire types needed to //! build and read message bodies, so most callers never import `wire` directly. //! //! The source lives at //! [git.jcollie.dev/jeff/mdbus](https://git.jcollie.dev/jeff/mdbus), mirrored at //! [codeberg.org/jcollie/mdbus](https://codeberg.org/jcollie/mdbus). const std = @import("std"); /// The wire format: encoding and decoding message bodies and whole /// messages, and the rules names and signatures must follow. `Connection` /// re-exports what a caller sending and receiving needs; this is for one that /// works with messages directly -- a service testing its dispatch without a /// bus, say, by building the calls it would have received. pub const wire = @import("wire.zig"); /// One authenticated connection to the session bus. pub const Connection = @import("Connection.zig"); /// The largest message this build will encode or accept. Set it with the /// `max_message_size` build option; the default is 16 MiB. pub const max_message_size = wire.max_message_size; /// The largest message the protocol itself allows, which is the ceiling the /// `max_message_size` build option is checked against. pub const spec_max_message_size = wire.spec_max_message_size; test { _ = Connection; _ = wire; _ = @import("wire_reference_test.zig"); _ = @import("live_bus_test.zig"); }