Allow passing a MqArgs struct to the MQ creation #583

Merged
mohr merged 12 commits from eive/fsfw:mueller/ipc-pass-arbitrary-args-to-mq into development 2022-04-25 14:43:53 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 8c2105ae0a - Show all commits

View File

@ -1,11 +1,13 @@
#ifndef FSFW_SRC_FSFW_IPC_DEFINITIONS_H_
#define FSFW_SRC_FSFW_IPC_DEFINITIONS_H_
#include <fsfw/objectmanager/SystemObjectIF.h>
#include <fsfw/objectmanager/frameworkObjects.h>
struct MqArgs {
MqArgs(){};
gaisser marked this conversation as resolved
Review

This should be NO_OBJECT instead of 0

This should be NO_OBJECT instead of 0
MqArgs(object_id_t objectId, void* args = nullptr) : objectId(objectId), args(args) {}
object_id_t objectId = 0;
object_id_t objectId = objects::NO_OBJECT;
void* args = nullptr;
};