Add more functions to repo type
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
f0709a2a4b
commit
216120ca1d
@ -1,7 +1,8 @@
|
|||||||
use rmp_ipc::IPCBuilder;
|
use rmp_ipc::IPCBuilder;
|
||||||
|
|
||||||
mod namespaces;
|
mod namespaces;
|
||||||
|
pub mod types;
|
||||||
|
|
||||||
pub fn get_builder(address: &str) -> IPCBuilder {
|
pub fn get_builder(address: &str) -> IPCBuilder {
|
||||||
IPCBuilder::new().address(address)
|
namespaces::build_namespaces(IPCBuilder::new().address(address))
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
use rmp_ipc::NamespaceBuilder;
|
||||||
|
|
||||||
|
pub fn build(builder: NamespaceBuilder) -> NamespaceBuilder {
|
||||||
|
builder
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
use rmp_ipc::IPCBuilder;
|
||||||
|
|
||||||
|
pub mod files;
|
||||||
|
|
||||||
|
pub fn build_namespaces(builder: IPCBuilder) -> IPCBuilder {
|
||||||
|
let builder = files::build(builder.namespace("files")).build();
|
||||||
|
|
||||||
|
builder
|
||||||
|
}
|
Loading…
Reference in New Issue