From 7d64832f774334611bfed7e082d87c3f52326c99 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 24 Jul 2024 14:57:01 +0200 Subject: [PATCH] add back some hacks we had for messages will need to think about how to solve these better --- src/solanaceae/object_store/meta_components_file.hpp | 10 ++++++++++ src/solanaceae/object_store/object_store.hpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/solanaceae/object_store/meta_components_file.hpp b/src/solanaceae/object_store/meta_components_file.hpp index f4361e7..1a6becd 100644 --- a/src/solanaceae/object_store/meta_components_file.hpp +++ b/src/solanaceae/object_store/meta_components_file.hpp @@ -136,6 +136,16 @@ namespace ObjectStore::Components { }; #endif + // split into up and down? + struct TagTransferPaused {}; + + // TODO: big todo, this needs to become some kind of event + // TODO: rename to start? or set or ... + struct ActionTransferAccept { + std::string save_to_path; + bool path_is_file = false; // if the path is not the folder to place the file into, overwrites the name + }; + } // File } // Ephemeral diff --git a/src/solanaceae/object_store/object_store.hpp b/src/solanaceae/object_store/object_store.hpp index 9eee0a4..026fca6 100644 --- a/src/solanaceae/object_store/object_store.hpp +++ b/src/solanaceae/object_store/object_store.hpp @@ -29,6 +29,8 @@ struct StorageBackendI { // ========== File2 interop ========== enum FILE2_FLAGS : uint32_t { + FILE2_NONE = 0u, + FILE2_READ = 1u << 0, FILE2_WRITE = 1u << 1,