use crate::coroutine::Fault;
use crate::engine::{ProtocolMachine, StepPack};
use crate::session::SessionId;
#[allow(clippy::too_many_arguments)]
pub(crate) fn step_transfer(
machine: &mut ProtocolMachine,
coro_idx: usize,
role: &str,
sid: SessionId,
endpoint: u16,
target: u16,
bundle: u16,
) -> Result<StepPack, Fault> {
machine.step_transfer(coro_idx, role, sid, endpoint, target, bundle)
}
pub(crate) fn step_tag(
machine: &mut ProtocolMachine,
coro_idx: usize,
role: &str,
sid: SessionId,
fact: u16,
dst: u16,
) -> Result<StepPack, Fault> {
machine.step_tag(coro_idx, role, sid, fact, dst)
}
#[allow(clippy::too_many_arguments)]
pub(crate) fn step_check(
machine: &mut ProtocolMachine,
coro_idx: usize,
role: &str,
sid: SessionId,
knowledge: u16,
target: u16,
dst: u16,
) -> Result<StepPack, Fault> {
machine.step_check(coro_idx, role, sid, knowledge, target, dst)
}