2018-07-12 16:29:32 +02:00
|
|
|
#ifndef FRAMEWORK_IPC_MESSAGEQUEUESENDERIF_H_
|
|
|
|
#define FRAMEWORK_IPC_MESSAGEQUEUESENDERIF_H_
|
|
|
|
|
2020-06-09 02:18:39 +02:00
|
|
|
#include <framework/ipc/MessageQueueMessageIF.h>
|
2018-07-12 16:29:32 +02:00
|
|
|
#include <framework/objectmanager/ObjectManagerIF.h>
|
|
|
|
|
|
|
|
class MessageQueueSenderIF {
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~MessageQueueSenderIF() {}
|
|
|
|
|
|
|
|
/**
|
2020-06-23 21:03:22 +02:00
|
|
|
* Allows sending messages without actually "owning" a message queue.
|
2018-07-12 16:29:32 +02:00
|
|
|
* Not sure whether this is actually a good idea.
|
|
|
|
*/
|
|
|
|
static ReturnValue_t sendMessage(MessageQueueId_t sendTo,
|
2020-06-23 21:03:22 +02:00
|
|
|
MessageQueueMessageIF* message,
|
2020-06-09 02:18:39 +02:00
|
|
|
MessageQueueId_t sentFrom = MessageQueueMessageIF::NO_QUEUE,
|
2020-06-23 21:03:22 +02:00
|
|
|
bool ignoreFault = false);
|
2018-07-12 16:29:32 +02:00
|
|
|
private:
|
|
|
|
MessageQueueSenderIF() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FRAMEWORK_IPC_MESSAGEQUEUESENDERIF_H_ */
|