2024-06-03 13:45:19 +02:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-05-15 13:48:57 +02:00
|
|
|
#ifndef SQLITE_AGENT_H_INCLUDED
|
|
|
|
|
#define SQLITE_AGENT_H_INCLUDED
|
|
|
|
|
|
|
|
|
|
#include "platform/posix/hal_types.h"
|
|
|
|
|
|
|
|
|
|
#include "ud3tn/bundle_processor.h"
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
// Default Agent IDs.
|
|
|
|
|
#ifndef AGENT_ID_SQLITE_DTN
|
|
|
|
|
#define AGENT_ID_SQLITE_DTN "sqlite"
|
|
|
|
|
#endif // AGENT_ID_SQLITE_DTN
|
|
|
|
|
#ifndef AGENT_ID_SQLITE_IPN
|
|
|
|
|
#define AGENT_ID_SQLITE_IPN "9003"
|
|
|
|
|
#endif // AGENT_ID_SQLITE_IPN
|
|
|
|
|
|
2024-05-29 15:07:31 +02:00
|
|
|
struct sqlite_agent_params {
|
|
|
|
|
char *sink_identifier;
|
2024-05-30 10:35:38 +02:00
|
|
|
agent_no_t registered_agent_no;
|
2024-10-07 13:18:29 +02:00
|
|
|
struct sqlite3 *db;
|
2024-05-29 15:07:31 +02:00
|
|
|
QueueIdentifier_t cla_queue;
|
|
|
|
|
};
|
|
|
|
|
|
2024-06-21 12:45:02 +02:00
|
|
|
enum ud3tn_result sqlite_agent_setup(
|
|
|
|
|
const struct bundle_agent_interface *const bai,
|
2024-05-29 15:07:31 +02:00
|
|
|
struct sqlite_agent_params *params
|
2024-05-15 13:48:57 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
#endif // SQLITE_AGENT_H_INCLUDED
|