mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-15 12:50:49 +02:00
For two settings previously defined in `hal_config.h` it makes sense to make them changeable via `config.mk`. The AAP setting is moved to the appropriate header and the Linux-specific APU define gets a guard so it can be changed at compile time. Signed-off-by: Felix Walter <felix.walter@d3tn.com>
26 lines
782 B
C
26 lines
782 B
C
// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
|
|
#ifndef APPLICATIONAGENT_H_INCLUDED
|
|
#define APPLICATIONAGENT_H_INCLUDED
|
|
|
|
#include "ud3tn/bundle_processor.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#define APPLICATION_AGENT_TASK_PRIORITY 2
|
|
|
|
// Listen-backlog for the app. agent.
|
|
#ifndef APPLICATION_AGENT_BACKLOG
|
|
#define APPLICATION_AGENT_BACKLOG 2
|
|
#endif // APPLICATION_AGENT_BACKLOG
|
|
|
|
#ifndef APPLICATION_AGENT_RX_BUFFER_SIZE
|
|
#define APPLICATION_AGENT_RX_BUFFER_SIZE 512
|
|
#endif // APPLICATION_AGENT_RX_BUFFER_SIZE
|
|
|
|
struct application_agent_config *application_agent_setup(
|
|
const struct bundle_agent_interface *bundle_agent_interface,
|
|
const char *socket_path,
|
|
const char *node, const char *service,
|
|
const uint8_t bp_version, uint64_t lifetime_ms);
|
|
|
|
#endif /* APPLICATIONAGENT_H_INCLUDED */
|