1use crate::prelude::HDK;
2use hdi::map_extern::ExternResult;
3use holochain_zome_types::clone::{
4 ClonedCell, CreateCloneCellInput, DeleteCloneCellInput, DisableCloneCellInput,
5 EnableCloneCellInput,
6};
7
8pub fn create_clone_cell(input: CreateCloneCellInput) -> ExternResult<ClonedCell> {
14 HDK.with(|h| h.borrow().create_clone_cell(input))
15}
16
17pub fn disable_clone_cell(input: DisableCloneCellInput) -> ExternResult<()> {
19 HDK.with(|h| h.borrow().disable_clone_cell(input))
20}
21
22pub fn enable_clone_cell(input: EnableCloneCellInput) -> ExternResult<ClonedCell> {
28 HDK.with(|h| h.borrow().enable_clone_cell(input))
29}
30
31pub fn delete_clone_cell(input: DeleteCloneCellInput) -> ExternResult<()> {
33 HDK.with(|h| h.borrow().delete_clone_cell(input))
34}