src/lib/occlib/ipc_api.h
///////////////////////////////////////////////////////////////////////////////
/// Retrieve the IPC function ID for a message
///
/// \param msg A pointer to an IPC message
///
/// This interface should be used to extract the IPC function ID of a message.
///
/// The IPC function ID is returned.
///
Retrieve the IPC function ID for a message
\param msg A pointer to an IPC message

This interface should be used to extract the IPC function ID of a message.

The IPC function ID is returned.
Retrieve the IPC function ID for a message \ param msg A pointer to an IPC message This interface should be used to extract the IPC function ID of a message . The IPC function ID is returned .
static inline int ipc_get_funcid(ipc_msg_t* msg)
{
    int func_id = msg->func_id.word32;
    if(func_id & IPC_FLAG_MT)
    {
        func_id |= IPC_TARGET_MASK;
    }
    func_id &= ~(IPC_FLAG_ACTIVE | IPC_FLAG_RESPONSE | IPC_SENDER_MASK);
    return func_id;
}
static inline int ipc_get_funcid ( ipc_msg_t * msg ) { int func_id = msg -> func_id . word32 ; if ( func_id & IPC_FLAG_MT ) { func_id |= IPC_TARGET_MASK ; } func_id &= ~ ( IPC_FLAG_ACTIVE | IPC_FLAG_RESPONSE | IPC_SENDER_MASK ) ; return func_id ; }
Retrieve the IPC function ID for a message
\param msg A pointer to an IPC message
Retrieve the IPC function ID for a message \ param msg A pointer to an IPC message
//Multi-target function ID's always have the target ID set to //so that if the caller doesn't set it to a proper target id it will //flag an error. //Clear the active and response flags in case they are set along //with the sender ID.