ud3tn/include/agents/config_agent.h
Felix Walter 85f20e8b25 config_agent: Do not send command via BP queue
This may cause a deadlock which we observed sometimes in the routing
integration test in CI as one slot in the BP queue is always needed to
finish processing the Bundle in the BP (that causes `agent_forward` in
this case).

This makes the config agent directly invoke the BP function.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-10 17:23:55 +02:00

25 lines
560 B
C

// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
#ifndef CONFIGAGENT_H_INCLUDED
#define CONFIGAGENT_H_INCLUDED
#include "platform/hal_types.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#define CONFIG_AGENT_QUEUE_SIZE 10
#define CONFIG_AGENT_TASK_PRIORITY 2
struct config_agent_item {
uint8_t *data;
size_t data_length;
};
int config_agent_setup(
QueueIdentifier_t bundle_processor_signaling_queue,
const char *local_eid,
bool allow_remote_configuration,
void *bundle_processor_context);
#endif /* CONFIGAGENT_H_INCLUDED */