mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-17 13:07:35 +02:00
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>
25 lines
560 B
C
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 */
|