Function xous::syscall::reply_and_receive_next_legacy
source · pub fn reply_and_receive_next_legacy(
server: SID,
msg: &mut Option<MessageEnvelope>,
return_type: &mut usize
) -> Result<(), Error>
Expand description
Reply to the message, if one exists, and receive the next one.
If no message exists, delegate the call to receive_syscall()
.
Allow specifying the scalar return type.
This is named _legacy
because it is meant to work with calls that
expect both Scalar1
and Scalar2
values, in addition to Scalar5
.
§Arguments
- server: The SID of the server to receive messages from
- msg: An
Option<MessageEnvelope>
specifying the message to return. - return_type: If 1 or 2, responds to a BlockingScalarMessage with a Scalar1 or a Scalar2. Otherwise, will respond as normal.