mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-11-11 14:47:39 +00:00
Compose the CM0 fullscreen application and standard Debian package, align the Cardputer Zero shell, and share protocol, configuration, audio and storage services with embedded targets through existing platform seams. Add the paginated on-device TMAP creator using Center's published producer, private workspace recovery and direct keyboard shortcuts. Preserve unfinished management work behind its existing opt-in capability. Include native, ARM and shared-core regression fixtures, integration records, packaging helpers and dependency/license updates. Keep local build trees, device credentials, produced packages and validation logs outside version control. Validation before integration: ESP stack hygiene, Reticulum scope guard, staged whitespace checks and GitNexus scope audit. Prior device/build evidence and remaining hardware/package boundaries are recorded in the acceptance documents.
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#pragma once
|
|
#include "chat/ports/track_delivery_binding.h"
|
|
#include "hostlink/management_envelope.h"
|
|
#include "platform/linux/mesh/linux_reticulum_identity.h"
|
|
#include "track_sharing/publication_directory.h"
|
|
#include <filesystem>
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
namespace trailmate::linux_app
|
|
{
|
|
class LinuxTrackRead
|
|
{
|
|
public:
|
|
using Directory = std::function<::hostlink::management::Status(const uint8_t*, geocaching::ByteView, geocaching::ByteView, track_sharing::PublicationDirectory&)>;
|
|
using Transport = std::function<bool(const uint8_t*, const uint8_t*, chat::lxmf::ByteSpan, chat::MessageId)>;
|
|
using MessageSource = std::function<chat::MessageId()>;
|
|
LinuxTrackRead(std::filesystem::path storage, std::filesystem::path database, const platform::linux_runtime::LinuxReticulumIdentity&, Directory, Transport, MessageSource);
|
|
~LinuxTrackRead();
|
|
void tick(uint64_t now, bool context_current, uint64_t context_generation);
|
|
bool receive(chat::lxmf::ByteSpan, const chat::lxmf::CustomDeliveryView&, uint64_t now);
|
|
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
} // namespace trailmate::linux_app
|