macro_rules! ipc_client_send_request_command {
([$obj_info:expr; $rq_id:expr] ( $( $in_param:expr ),* ) => ( $( $out_param:ident: $out_param_type:ty ),* )) => { ... };
}
Expand description
Sends an IPC “Request” command
§Examples
use nx::ipc::sf::Session;
fn demo(session: Session) -> $crate::result::Result<()> {
let in_32: u32 = 69;
let in_16: u16 = 420;
// Calls command with request ID 123 and with an input-u32 and an input-u16 expecting an output-u64, Will yield a Result<u64>
let _out = ipc_client_send_request_command!([session.object_info; 123] (in_32, in_16) => (out: u64))?;
Ok(())
}