src/luos.c
error_return_t Luos_SendMsg(service_t *service, msg_t *msg)
{
    if (service == 0)
    {
        // There is no service specified here, take the first one
        service = &service_table[0];
    }
    if ((service->ll_service->id == 0) && (msg->header.cmd >= LUOS_LAST_RESERVED_CMD))
    {
        // We are in detection mode and this command come from user
        // We can't send it
        return PROHIBITED;
    }
    if (Robus_SendMsg(service->ll_service, msg) == FAILED)
    {
        return FAILED;
    }

    return SUCCEED;
}
/******************************************************************************
 * @brief Send msg through network
 * @param Service who send
 * @param Message to send
 * @return None
 ******************************************************************************/
@brief Send msg through network
@param Service who send
@param Message to send
@return None
@brief Send msg through network @param Service who send @param Message to send @return None
error_return_t Luos_SendMsg(service_t *service, msg_t *msg)
{
    if (service == 0)
    {
        service = &service_table[0];
    }
    if ((service->ll_service->id == 0) && (msg->header.cmd >= LUOS_LAST_RESERVED_CMD))
    {
        return PROHIBITED;
    }
    if (Robus_SendMsg(service->ll_service, msg) == FAILED)
    {
        return FAILED;
    }
    return SUCCEED;
}
error_return_t Luos_SendMsg ( service_t * service , msg_t * msg ) { if ( service == 0 ) { service = & service_table [ 0 ] ; } if ( ( service -> ll_service -> id == 0 ) && ( msg -> header . cmd >= LUOS_LAST_RESERVED_CMD ) ) { return PROHIBITED ; } if ( Robus_SendMsg ( service -> ll_service , msg ) == FAILED ) { return FAILED ; } return SUCCEED ; }
@brief Send msg through network
 @param Service who send
 @param Message to send
 @return None
@brief Send msg through network @param Service who send @param Message to send @return None
// There is no service specified here, take the first one // We are in detection mode and this command come from user // We can't send it